Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow #2

Merged
merged 30 commits into from
Sep 11, 2024
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Compile

on:
push:
branches: [ "master", "workflow" ]
pull_request:
branches: [ "master", "workflow" ]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 20

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 9.3.0
run_install: false

- name: Install dependencies of pnpm
run: pnpm install --frozen-lockfile

- name: compile
run: pnpm run tauri-build

- name: List generated files
run: dir src-tauri/target/release/bundle/nsis

- name: Debug ref
run: echo "github.ref is ${{ github.ref }}"

- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: src-tauri/target/release/bundle/nsis/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}