Skip to content

Commit

Permalink
add simple workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
falk-werner committed Dec 21, 2023
1 parent a1bdd2b commit 7bf0682
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:

jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}

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

- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
- name: Rust setup
uses: dtolnay/rust-toolchain@stable

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'

- name: Sync node version and setup cache
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'

- name: Install frontend dependencies
run: npm install

- name: Build the app
run: cargo tauri build

- name: Deploy
uses: actions/upload-artifact@v4
with:
name: note.rs_${{runner.os}}
path: src-tauri/target/release/
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules/
/node_modules/
/dist/
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "com.tauri.dev",
"identifier": "note.rs",
"longDescription": "",
"macOS": {
"entitlements": null,
Expand Down

0 comments on commit 7bf0682

Please sign in to comment.