Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions to use non-deprecated versions #513

Merged
merged 1 commit into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Build for Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- if: ${{ github.event_name == 'push' }}
uses: docker/login-action@v3
with:
Expand All @@ -30,7 +30,7 @@ jobs:

# The artifact name will contain the target triple, so the file name doesn't need to.
mv artifacts/toast-x86_64-unknown-linux-gnu artifacts/toast
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: x86_64-unknown-linux-gnu
path: artifacts/toast
Expand All @@ -41,7 +41,7 @@ jobs:

# The artifact name will contain the target triple, so the file name doesn't need to.
mv artifacts/toast-x86_64-unknown-linux-musl artifacts/toast
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: x86_64-unknown-linux-musl
path: artifacts/toast
Expand All @@ -52,7 +52,7 @@ jobs:

# The artifact name will contain the target triple, so the file name doesn't need to.
mv artifacts/toast-aarch64-unknown-linux-gnu artifacts/toast
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: aarch64-unknown-linux-gnu
path: artifacts/toast
Expand All @@ -63,7 +63,7 @@ jobs:

# The artifact name will contain the target triple, so the file name doesn't need to.
mv artifacts/toast-aarch64-unknown-linux-musl artifacts/toast
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: aarch64-unknown-linux-musl
path: artifacts/toast
Expand All @@ -72,7 +72,7 @@ jobs:
name: Build for Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
# Make Bash log commands and not silently ignore errors.
set -euxo pipefail
Expand Down Expand Up @@ -103,12 +103,12 @@ jobs:
--release \
--target aarch64-pc-windows-msvc
NO_COLOR=true cargo test --locked # [ref:colorless_tests]
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: x86_64-pc-windows-msvc
path: target/x86_64-pc-windows-msvc/release/toast.exe
if-no-files-found: error
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: aarch64-pc-windows-msvc
path: target/aarch64-pc-windows-msvc/release/toast.exe
Expand All @@ -117,7 +117,7 @@ jobs:
name: Build for macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
# Make Bash log commands and not silently ignore errors.
set -euxo pipefail
Expand All @@ -141,12 +141,12 @@ jobs:
MACOSX_DEPLOYMENT_TARGET=$(xcrun --show-sdk-version) \
cargo build --locked --release --target aarch64-apple-darwin
NO_COLOR=true cargo test --locked # [ref:colorless_tests]
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: x86_64-apple-darwin
path: target/x86_64-apple-darwin/release/toast
if-no-files-found: error
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: aarch64-apple-darwin
path: target/aarch64-apple-darwin/release/toast
Expand All @@ -155,7 +155,7 @@ jobs:
name: Install on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
# Make Bash log commands and not silently ignore errors.
set -euxo pipefail
Expand All @@ -169,7 +169,7 @@ jobs:
name: Install on Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
# Make Bash log commands and not silently ignore errors.
set -euxo pipefail
Expand All @@ -185,8 +185,8 @@ jobs:
runs-on: ubuntu-latest
needs: [ci-linux, ci-macos, ci-windows, install-macos, install-ubuntu]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifacts/
- env:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: stepchowfun/toast/.github/actions/toast@main
```

Expand All @@ -552,7 +552,7 @@ jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- if: github.event_name == 'push'
uses: docker/login-action@v3
with:
Expand Down