Skip to content

Commit

Permalink
fix: Remove deprecated actions, bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed May 10, 2024
1 parent fd04f32 commit d820141
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,27 @@ jobs:

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

- name: Install rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
targets: ${{ matrix.job.target }}

- name: Build target
uses: actions-rs/cargo@v1
uses: houseabsolute/actions-rust-cross@v0
with:
use-cross: ${{ matrix.job.use-cross }}
command: build
args: --release --bin c2g --target ${{ matrix.job.target }}
target: ${{ matrix.job.target }}
args: "--locked --release --bin c2g"
strip: true

- name: Format
run: cargo fmt --all -- --check

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test

- name: Upload target
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -83,7 +85,7 @@ jobs:

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

- name: Set up Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v3
Expand Down Expand Up @@ -119,10 +121,10 @@ jobs:

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

- name: Install rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,25 @@ jobs:

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

- name: Install rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
targets: ${{ matrix.job.target }}
components: clippy, rustfmt

- name: Build target
uses: actions-rs/cargo@v1
uses: houseabsolute/actions-rust-cross@v0
with:
use-cross: ${{ matrix.job.use-cross }}
command: build
args: --release --bin c2g --target ${{ matrix.job.target }}
target: ${{ matrix.job.target }}
args: "--locked --release --bin c2g"
strip: true

- name: Format
run: cargo fmt --all -- --check

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test

0 comments on commit d820141

Please sign in to comment.