diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a0e7f17..bd7e2ca 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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/cargo-action@v0.0.6 - with: - args: --release --target ${{ matrix.target }} --verbose - command: build + - name: Build release + run: cargo build --release --verbose - name: Run tests - uses: ClementTsang/cargo-action@v0.0.6 - 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*