New UI #134
Workflow file for this run
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" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
jobs: | |
build-omp-launcher: | |
name: Windows build | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Rust nightly toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
- name: Install frontend dependencies | |
run: yarn install # change this to npm or pnpm depending on which one you use | |
- uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run UPX against portable version | |
uses: crazy-max/ghaction-upx@v3 | |
with: | |
version: latest | |
files: | | |
./src-tauri/target/release/omp-launcher.exe | |
args: -9 -fq | |
- name: Generate artifact name | |
id: vars | |
shell: bash | |
run: | | |
artifact_name="open.mp-launcher-win-${GITHUB_RUN_ID}" | |
echo "artifact_name=${artifact_name}" >> $GITHUB_OUTPUT | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ steps.vars.outputs.artifact_name }} | |
path: src-tauri/target/release/omp-launcher.exe | |
if-no-files-found: error |