fix: correct artifact paths to workspace target #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| windows: | |
| name: Windows | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Format check | |
| run: cargo fmt --all --check | |
| - name: Test (core) | |
| run: | | |
| cargo build --workspace --exclude cicada-client | |
| cargo test --workspace --exclude cicada-client | |
| cargo clippy --workspace --exclude cicada-client -- -D warnings | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Build frontend | |
| working-directory: crates/cicada-client/ui | |
| run: npm ci && npm run build | |
| - name: Install Tauri CLI | |
| run: cargo install tauri-cli --version "1.6.6" --locked | |
| - name: Build Tauri (Windows) | |
| working-directory: crates/cicada-client | |
| env: | |
| GIT_HASH: ${{ github.sha }} | |
| BUILD_DATE: ${{ github.event.repository.updated_at }} | |
| run: cargo tauri build --bundles nsis | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: cicada-windows | |
| path: target/release/bundle/nsis/*.exe | |
| linux: | |
| name: Linux | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Format check | |
| run: cargo fmt --all --check | |
| - name: Test (core) | |
| run: | | |
| cargo build --workspace --exclude cicada-client | |
| cargo test --workspace --exclude cicada-client | |
| cargo clippy --workspace --exclude cicada-client -- -D warnings | |
| - name: Build mock server (release) | |
| run: cargo build --release -p cicada-mock-server | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: cicada-linux | |
| path: target/release/cicada-mock-server | |
| macos: | |
| name: macOS | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Format check | |
| run: cargo fmt --all --check | |
| - name: Test (core) | |
| run: | | |
| cargo build --workspace --exclude cicada-client | |
| cargo test --workspace --exclude cicada-client | |
| cargo clippy --workspace --exclude cicada-client -- -D warnings | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Build frontend | |
| working-directory: crates/cicada-client/ui | |
| run: npm ci && npm run build | |
| - name: Install Tauri CLI | |
| run: cargo install tauri-cli --version "1.6.6" --locked | |
| - name: Build Tauri | |
| working-directory: crates/cicada-client | |
| env: | |
| GIT_HASH: ${{ github.sha }} | |
| BUILD_DATE: ${{ github.event.repository.updated_at }} | |
| run: cargo tauri build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: cicada-macos | |
| path: | | |
| target/release/bundle/dmg/*.dmg | |
| target/release/bundle/macos/*.dmg |