Merge pull request #1 from saagar210/codex/full-roadmap-local-first #6
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: linux-ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "codex/**" | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Install Linux system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libgtk-3-dev \ | |
| libwebkit2gtk-4.1-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| patchelf | |
| - name: Install frontend dependencies | |
| run: npm ci | |
| - name: Frontend checks | |
| run: | | |
| npx tsc --noEmit | |
| npm run build | |
| - name: Rust checks | |
| working-directory: src-tauri | |
| run: | | |
| cargo fmt --check | |
| cargo clippy --all-targets --all-features -- -D warnings | |
| cargo test | |
| cargo build | |
| bundle-linux: | |
| runs-on: ubuntu-latest | |
| needs: checks | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install Linux system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libgtk-3-dev \ | |
| libwebkit2gtk-4.1-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| patchelf | |
| - name: Install frontend dependencies | |
| run: npm ci | |
| - name: Build Linux bundles | |
| run: npm run tauri build -- --bundles deb,appimage | |
| - name: Upload Linux bundles | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: auraforge-linux-bundles | |
| path: | | |
| src-tauri/target/release/bundle/deb/**/*.deb | |
| src-tauri/target/release/bundle/appimage/**/*.AppImage |