Skip to content

Commit

Permalink
ci: Bump versions of action jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
apyrgio committed Sep 29, 2024
1 parent 8c24a7d commit 216cd10
Showing 1 changed file with 13 additions and 28 deletions.
41 changes: 13 additions & 28 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,24 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt

- name: cargo ${{ matrix.cmd }}
uses: actions-rs/cargo@v1
with:
command: ${{ matrix.cmd }}
args: ${{ matrix.args }}
run: cargo ${{ matrix.cmd }} ${{ matrix.args }}


lint_proto:
name: Lint .proto files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download Uber's prototool
run: |
Expand Down Expand Up @@ -74,27 +69,20 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Rust (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

# Catch any breaking changes in the dependencies early, by always updating
# them before running the tests.
- name: Update dependencies
uses: actions-rs/cargo@v1
with:
command: update
run: cargo update

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: "-- --nocapture" # Allow printing the output of tests
run: cargo test -- --nocapture # Allow printing the output of tests

build:
name: Build on ${{ matrix.os }}
Expand All @@ -117,16 +105,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: "--release"
run: cargo build --release

- name: Upload binaries
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: ${{ env.BINARY_NAME }}_${{ matrix.arch }}${{ matrix.extension}}
path: "target/release/${{ env.BINARY_NAME }}${{ matrix.extension }}"
Expand Down Expand Up @@ -167,7 +152,7 @@ jobs:
EOF
- name: Upload release context
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: release_context
path: release_context
Expand All @@ -189,7 +174,7 @@ jobs:

steps:
- name: Download release context
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: release_context
path: ctx
Expand Down

0 comments on commit 216cd10

Please sign in to comment.