-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update deps & implement basic ci/cd config
- Loading branch information
1 parent
7d5fc88
commit caf9a23
Showing
7 changed files
with
148 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"extends": ["config:recommended", "group:all", "schedule:weekly", ":widenPeerDependencies"], | ||
"enabledManagers": ["cargo", "github-actions", "npm"], | ||
"packageRules": [ | ||
{ | ||
"matchUpdateTypes": ["patch"], | ||
"enabled": false | ||
}, | ||
{ | ||
"matchManagers": ["cargo"], | ||
"automerge": true, | ||
"minimumReleaseAge": "2 days" | ||
}, | ||
{ | ||
"matchManagers": ["bun"], | ||
"automerge": true, | ||
"minimumReleaseAge": "2 days" | ||
} | ||
], | ||
"timezone": "America/Sao_Paulo", | ||
"dependencyDashboard": true | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: 'publish' | ||
|
||
on: | ||
push: | ||
tags: | ||
- v*.*.* | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: release-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish-tauri: | ||
permissions: | ||
contents: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- platform: 'macos-latest' | ||
args: '--target aarch64-apple-darwin' | ||
# Uncomment for Intel builds | ||
# - platform: 'macos-latest' # for Intel based macs. | ||
# args: '--target x86_64-apple-darwin' | ||
- platform: 'ubuntu-24.04' | ||
args: '' | ||
- platform: 'windows-latest' | ||
args: '' | ||
|
||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: latest | ||
- run: bun i | ||
|
||
- name: install Rust stable | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | ||
|
||
- name: install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-24.04' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | ||
- name: Build Tauri | ||
uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. | ||
releaseName: 'v__VERSION__' | ||
releaseBody: 'See [CHANGES.md](https://github.com/alysonhower/tauri2-svelte5-boilerplate/blob/main/CHANGES.md) for a complete list of changes.' | ||
releaseDraft: true | ||
prerelease: false | ||
args: ${{ matrix.args }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'src/**' | ||
- 'src-tauri/**' | ||
- 'tests/**' | ||
- 'bun.lockb' | ||
- 'src-tauri/Cargo.lock' | ||
- '.github/workflows/test-build.yml' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: build-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-tauri: | ||
permissions: | ||
contents: write | ||
strategy: | ||
fail-fast: true | ||
|
||
runs-on: 'ubuntu-24.04' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: latest | ||
- run: bun i | ||
|
||
- name: install Rust stable | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | ||
- name: Build Tauri | ||
run: bun tauri build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"rust-lang.rust-analyzer", | ||
"tauri-apps.tauri-vscode", | ||
"svelte.svelte-vscode", | ||
"bradlc.vscode-tailwindcss", | ||
"esbenp.prettier-vscode" | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
|
||
## 1.0.0 (2024-11-15) | ||
|
||
- Feat: implement ci/cd config |
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
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