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

misc(ci): simplify #21

Merged
merged 3 commits into from
Nov 19, 2024
Merged
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
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*