Skip to content

Commit

Permalink
misc(ci): simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeromos Kovács committed Nov 19, 2024
1 parent aadce0c commit c1b077a
Showing 1 changed file with 8 additions and 26 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,20 @@ env:

jobs:
build:
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
runs-on: ["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: Upload executable
uses: actions/upload-artifact@v4
with:
name: cgol-tui-${{ matrix.os }}
path: target/${{ matrix.target }}/release/cgol-tui*
name: cgol-tui_*
path: target/*/release/cgol-tui*

0 comments on commit c1b077a

Please sign in to comment.