Skip to content

Commit

Permalink
bump gh actions to node 20 version (supercollider#6328)
Browse files Browse the repository at this point in the history
  • Loading branch information
capital-G authored May 30, 2024
1 parent 09f04c8 commit 8e1bb14
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
outputs:
sc-version: ${{ steps.set-version.outputs.version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: lint class library
Expand Down Expand Up @@ -132,14 +132,14 @@ jobs:
CXX: ${{ matrix.cxx-compiler }}
ARTIFACT_FILE: 'SuperCollider-${{ needs.lint.outputs.sc-version }}-${{ matrix.artifact-suffix }}'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: prepare daily timestamp for cache
id: current-date
run: echo "stamp=$(date '+%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: cache ccache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.ccache
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
if: matrix.artifact-suffix
run: cd $INSTALL_PATH && zip --symlinks -r $ARTIFACT_FILE.zip .
- name: upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: matrix.artifact-suffix
with:
name: ${{ env.ARTIFACT_FILE }}
Expand Down Expand Up @@ -258,7 +258,7 @@ jobs:
BREW_UNIVERSAL_WORKDIR: ${{ github.workspace }}/brew-universal
SKIP_SIGNING: 1 # for brew-install-universal
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: prepare timestamp for cache
Expand All @@ -267,30 +267,30 @@ jobs:
echo "stamp=$(date '+%Y-%m-%d')" >> $GITHUB_OUTPUT
echo "week=$(date '+%U')" >> $GITHUB_OUTPUT
- name: cache ccache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/Library/Caches/ccache
key: ${{ runner.os }}-${{ matrix.os-version }}-${{ matrix.xcode-version }}-${{ matrix.use-syslibs }}-${{ matrix.shared-libscsynth }}-${{ matrix.qt-version }}-${{ matrix.cmake-architectures }}-${{ steps.current-date.outputs.stamp }}
restore-keys: ${{ runner.os }}-${{ matrix.os-version }}-${{ matrix.xcode-version }}-${{ matrix.use-syslibs }}-${{ matrix.shared-libscsynth }}-${{ matrix.qt-version }}-${{ matrix.cmake-architectures }}-
- name: cleanup homebrew downloads # always remove existing downloads first, as we bring back relevant downloads from cache
run: rm -rf $(brew --cache)
- name: cache homebrew downloads
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-homebrew
with:
path: ~/Library/Caches/Homebrew/downloads
key: ${{ runner.os }}-${{ matrix.os-version }}-${{ matrix.xcode-version }}-${{ matrix.use-syslibs }}-${{ matrix.shared-libscsynth }}-${{ matrix.qt-version }}-${{ matrix.cmake-architectures }}-homebrew-${{ steps.current-date.outputs.week }}
restore-keys: ${{ runner.os }}-${{ matrix.os-version }}-${{ matrix.xcode-version }}-${{ matrix.use-syslibs }}-${{ matrix.shared-libscsynth }}-${{ matrix.qt-version }}-${{ matrix.cmake-architectures }}-homebrew-
- name: cache homebrew universal packages
uses: actions/cache@v3
uses: actions/cache@v4
if: matrix.cmake-architectures != 'x86_64' && (matrix.build-libsndfile != true || matrix.build-readline != true || matrix.build-fftw != true)
with:
path: ${{ env.BREW_UNIVERSAL_WORKDIR }}
key: ${{ runner.os }}-v1-${{ matrix.os-version }}-${{ matrix.xcode-version }}-${{ matrix.deployment-target }}-brew_universal-${{ steps.current-date.outputs.week }}
restore-keys: ${{ runner.os }}-v1-${{ matrix.os-version }}-${{ matrix.xcode-version }}-${{ matrix.deployment-target }}-brew_universal-
- name: cache vcpkg
if: matrix.vcpkg-triplet
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/vcpkg/archives
key: ${{ runner.os }}-${{ matrix.os-version }}-${{ matrix.xcode-version }}-${{ matrix.deployment-target }}-${{ matrix.vcpkg-triplet }}-${{ steps.current-date.outputs.stamp }}
Expand Down Expand Up @@ -388,7 +388,7 @@ jobs:
# when that happens, we run it again
hdiutil create -srcfolder SuperCollider -format UDZO -fs HFS+ $ARTIFACT_FILE || hdiutil create -srcfolder SuperCollider -format UDZO -fs HFS+ $ARTIFACT_FILE
- name: upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: matrix.artifact-suffix
with:
name: ${{ env.ARTIFACT_FILE }}
Expand Down Expand Up @@ -458,7 +458,7 @@ jobs:
ARTIFACT_FILE: 'SuperCollider-${{ needs.lint.outputs.sc-version }}-${{ matrix.artifact-suffix }}'
INSTALLER_FILE: 'SuperCollider-${{ needs.lint.outputs.sc-version }}-${{ matrix.installer-suffix }}'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: prepare timestamp for cache
Expand All @@ -467,13 +467,13 @@ jobs:
run: echo "stamp=$(date '+%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: cache vcpkg
if: matrix.vcpkg-triplet
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/AppData/Local/vcpkg/archives
key: ${{ runner.os }}-${{ matrix.os-version }}-${{ matrix.cmake-arch }}-${{ matrix.vcpkg-triplet }}-${{ steps.current-date.outputs.stamp }}
restore-keys: ${{ runner.os }}-${{ matrix.os-version }}-${{ matrix.cmake-arch }}-${{ matrix.vcpkg-triplet }}-
- name: cache ccache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/AppData/Local/ccache # updated in ccache 4.7, see https://github.com/ccache/ccache/issues/1023
key: ${{ runner.os }}-${{ matrix.os-version }}-${{ matrix.cmake-arch }}-${{ matrix.qt-arch }}-${{ matrix.qt-version }}-${{ steps.current-date.outputs.stamp }}
Expand Down Expand Up @@ -545,7 +545,7 @@ jobs:
shell: bash
run: cd $INSTALL_PATH && 7z a $ARTIFACT_FILE.zip -tzip SuperCollider # this assumes that we end up with the build in the folder SuperCollider
- name: upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: matrix.artifact-suffix
with:
name: ${{ env.ARTIFACT_FILE }}
Expand All @@ -557,7 +557,7 @@ jobs:
export PATH="C:\Program Files (x86)\NSIS":$PATH
cmake --build $BUILD_PATH --config Release --target installer
- name: upload installer
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: matrix.create-installer == true
with:
name: ${{ env.INSTALLER_FILE }}
Expand Down Expand Up @@ -599,11 +599,11 @@ jobs:
SCRIPT_ADD_PATH: ${{ github.workspace }}/testsuite/scripts/add_include_path.scd
SCRIPT_PRINT_RESULTS: ${{ github.workspace }}/testsuite/scripts/print_results.scd
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: false # don't need submodules for testing
- name: download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT_FILE }}
path: ${{ env.INSTALL_PATH }}
Expand Down Expand Up @@ -715,7 +715,7 @@ jobs:
S3_ROOT_URL: 'https://supercollider.s3.amazonaws.com'
steps:
- name: download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
if: env.UPLOAD_TO_S3 == 'true'
with:
name: ${{ env.ARTIFACT_FILE }}
Expand Down Expand Up @@ -782,7 +782,7 @@ jobs:
ARTIFACT_FILE_PREFIX: 'SuperCollider-${{ needs.lint.outputs.sc-version }}'
steps:
- name: download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{ env.INSTALL_PATH }} # no "name" paramter - download all artifacts
- name: upload to the release page
Expand Down

0 comments on commit 8e1bb14

Please sign in to comment.