From 7d4d3b83fc66c79b3faa5989e67ed2d1042dacaf Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 17 Sep 2024 17:05:06 -0700 Subject: [PATCH] ci: update actions (#535) This updates the GitHub actions to avoid errors related to deprecations; see [this example]. [this example]: https://github.com/WebAssembly/wasi-libc/actions/runs/10839597105/job/30080296576 --- .github/workflows/main.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e906e5e6..bf503418 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: - os: windows-latest clang_version: 16.0.0 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4.1.7 with: submodules: true @@ -135,10 +135,12 @@ jobs: # which is required by our malloc implementation. if: matrix.os == 'ubuntu-latest' && matrix.clang_version != '10.0.0' - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4.4.0 with: - # Upload the sysroot folder. Give it a name according to the OS it was built for. - name: ${{ format( 'sysroot-{0}.tgz', matrix.os) }} + # Upload the sysroot folder. To avoid action erros, we give it a unique + # name using the OS it was built for and the Clang version it was built + # with. + name: ${{ format( 'sysroot-{0}-clang-{1}.tgz', matrix.os, matrix.clang_version) }} path: sysroot # Disable the headerstest job for now, while WASI transitions from the @@ -152,7 +154,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4.1.7 with: submodules: true - name: Install Rust (rustup) @@ -175,7 +177,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4.1.7 with: submodules: true - name: Install Rust