Skip to content

Commit

Permalink
Merge pull request #26 from takanotume24/bug/25__build_fails_on_windows
Browse files Browse the repository at this point in the history
feat: Update GitHub Actions workflow and add rusqlite dependency
close #25
  • Loading branch information
takanotume24 authored Nov 8, 2024
2 parents 7132a16 + 210c00a commit 74bcdda
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 12 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/build.yml → .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ name: 'publish'

on:
push:
branches:
- release

# This workflow will trigger on each push to the `release` branch to create or update a GitHub release, build your app, and upload the artifacts to the release.
branches-ignore:
- 'release' # Ignore the release branch for the build job

jobs:
publish-tauri:
permissions:
contents: write
build:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
Expand All @@ -24,7 +21,6 @@ jobs:
- platform: 'windows-latest'
args: ''

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4

Expand All @@ -50,13 +46,24 @@ jobs:
- name: install frontend dependencies
run: npm install # change this to npm, pnpm or bun depending on which one you use.

- uses: tauri-apps/tauri-action@v0
- name: build the app
run: npm run build # or the command you use to build your application

release:
if: github.ref == 'refs/heads/release'
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: create GitHub release
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
tagName: app-v__VERSION__ # the action automatically replaces __VERSION__ with the app version.
releaseName: 'App v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
args: ''
60 changes: 59 additions & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ r2d2 = "0.8.10"
chrono = { version = "0.4.38", features = ["serde"] }
dirs = "5.0.1"
toml = "0.8.19"
rusqlite = { features = ["bundled"] }

0 comments on commit 74bcdda

Please sign in to comment.