Skip to content

Commit

Permalink
Merge pull request #21 from JeromeSchmied/ci
Browse files Browse the repository at this point in the history
misc(ci): simplify
  • Loading branch information
JeromeSchmied authored Nov 19, 2024
2 parents aadce0c + e609f0f commit 6b6c40f
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,26 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
target: aarch64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-msvc
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: swatinem/rust-cache@v2

- name: Cache dependencies
uses: swatinem/rust-cache@v2

- name: Build
uses: ClementTsang/[email protected]
with:
args: --release --target ${{ matrix.target }} --verbose
command: build
- name: Build release
run: cargo build --release --verbose

- name: Run tests
uses: ClementTsang/[email protected]
with:
args: --target ${{ matrix.target }} --verbose
command: test
run: cargo test --verbose

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

- name: Run cargo clippy
run: cargo clippy --all-targets

- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: cgol-tui-${{ matrix.os }}
path: target/${{ matrix.target }}/release/cgol-tui*
name: cgol-tui_${{ matrix.os }}
path: target/release/cgol-tui*

0 comments on commit 6b6c40f

Please sign in to comment.