Skip to content

Commit

Permalink
ci(build): setup build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Jul 11, 2024
1 parent 97042db commit 1804644
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# <!-- Why this PR? -->

Resolved: <!-- #ISSUE_ID -->

## What's being changed?

<!--
(if available, include any code snippets, screenshots, or gif files)
Check off the following:
1. I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).
- For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.
2. For content changes, I have completed the self-review checklist.
-->
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build RsHotkey

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build on ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.platform }}

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Setup Rust Toolchain
uses: dtolnay/rust-toolchain@stable

- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Install dependencies
run: pnpm install

- run: pnpm tauri build --all-targets --all-features

0 comments on commit 1804644

Please sign in to comment.