Build cambia #5
This file contains 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: Build cambia | |
on: | |
workflow_dispatch: | |
jobs: | |
npm: | |
name: Build frontend | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '21' | |
- name: Install dependencies | |
run: npm install | |
working-directory: web | |
- name: Generate the static site | |
run: npm run build | |
working-directory: web | |
- name: Upload static site files | |
uses: actions/upload-artifact@v3 | |
with: | |
name: webui | |
path: web/build | |
test: | |
name: Build executable | |
needs: npm | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download static site files | |
uses: actions/download-artifact@v3 | |
with: | |
name: webui | |
path: web/build | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Build w/ experimental rippers | |
run: cargo build --release --features experimental_rippers |