Upgrade GitHub Actions (#955)

This commit is contained in:
Wu Tingfeng 2023-06-20 14:13:05 +08:00 committed by GitHub
parent 5257078123
commit 958e1d03ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View File

@ -21,7 +21,7 @@ jobs:
repo: cross
matches: ${{ matrix.platform }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: cross-${{ matrix.platform }}
path: ${{ steps.cross.outputs.install_path }}
@ -37,7 +37,7 @@ jobs:
# artifacts are downloaded first.
needs: install-cross
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: ci/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }}
shell: bash
- run: ci/build.bash cargo ${{ matrix.target }}
@ -63,8 +63,8 @@ jobs:
runs-on: macos-latest
needs: install-cross
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: cross-apple-darwin
path: /usr/local/bin/
@ -92,9 +92,9 @@ jobs:
runs-on: ubuntu-latest
needs: install-cross
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Download Cross
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: cross-linux-musl
path: /tmp/

View File

@ -23,7 +23,7 @@ jobs:
repo: cross
matches: ${{ matrix.platform }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v3
with:
name: cross-${{ matrix.platform }}
path: ${{ steps.cross.outputs.install_path }}
@ -44,7 +44,7 @@ jobs:
# - i686-pc-windows-gnu
# - x86_64-pc-windows-gnu
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# FIXME: Hack around thinLTO being broken.
- run: echo "RUSTFLAGS=-Clto=fat" >> $GITHUB_ENV
- run: bash ci/set_rust_version.bash stable ${{ matrix.target }}
@ -87,8 +87,8 @@ jobs:
# - i386-apple-ios
# - x86_64-apple-ios
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: cross-apple-darwin
path: /usr/local/bin/
@ -162,8 +162,8 @@ jobs:
# - thumbv7em-none-eabihf
# - thumbv7m-none-eabi
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: cross-linux-musl
path: /tmp/