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

feat: Implemented Workflow File #10

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Changes from 5 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
aa6b130
feat: workflow file
alenmestrov Oct 15, 2024
33ec4c8
fix: updated rules for triggering process
alenmestrov Oct 15, 2024
9189682
fix: bumped github action to v3
alenmestrov Oct 15, 2024
ff338e4
fix: switched to official workflow from Tauri documentation
alenmestrov Oct 16, 2024
cb820f7
fix: added installation for pnpm
alenmestrov Oct 16, 2024
8b5b782
fix: added missing dependecy for aarch64 linux
alenmestrov Oct 16, 2024
611c7d5
fix: changed setting up of autolaunch for linux platforms
alenmestrov Oct 16, 2024
3d085f8
fix: added missing dependecies for aarch64 linux build
alenmestrov Oct 16, 2024
60b6950
fix: added packages for cross-compilation
alenmestrov Oct 16, 2024
cda45b2
fix: implemented cross-compilation toolchain for aarch64 linux
alenmestrov Oct 16, 2024
1c14193
fix: added openssl config for linux deployment
alenmestrov Oct 16, 2024
230d26b
fix: removed unused packages
alenmestrov Oct 16, 2024
31ca2a0
fix: add openssl only for aarch64 linux build
alenmestrov Oct 16, 2024
f713637
fix: updated openssl configuration for aarch64
alenmestrov Oct 16, 2024
36c1afb
fix: removed non existing package
alenmestrov Oct 16, 2024
588c34e
fix: openssl config
alenmestrov Oct 16, 2024
2d5e025
fix: updated openssl config
alenmestrov Oct 16, 2024
c6c8597
fix: trying to configure correctly openssl
alenmestrov Oct 16, 2024
3db6969
fix: implemented zig for cross-compilation to aarch linux build
alenmestrov Oct 16, 2024
9ecb361
fix: added openssl-dev package for linux distribution
alenmestrov Oct 17, 2024
3e8e8da
fix: removed extra env vars
alenmestrov Oct 17, 2024
d74ad7f
fix: manually set openssl config variables for aarch64
alenmestrov Oct 17, 2024
c488ea7
fix: added missing dependecies for aarch64 linux
alenmestrov Oct 17, 2024
3465097
fix: removed aarch64 build from initial file, changed logic and creat…
alenmestrov Oct 19, 2024
59fb18b
fix: added correct triggers
alenmestrov Oct 19, 2024
093b6ff
fix: removed condition for node-ui
alenmestrov Oct 19, 2024
d7cf863
fix: updated workflow file for aarch64 linux build
alenmestrov Oct 22, 2024
50f7245
fix: enabled prod release
alenmestrov Oct 27, 2024
e9fdd1b
fix: fixed CI script and downloading of binaries
alenmestrov Dec 12, 2024
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
68 changes: 68 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: 'publish'

on:
push:
branches: [ '**' ] # To run on any branch
pull_request:
branches: [ '**' ]
workflow_dispatch:

jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
args: '--target x86_64-unknown-linux-gnu'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
args: '--target aarch64-unknown-linux-gnu'

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

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.

- name: Install frontend dependencies
run: pnpm install # change this to npm, pnpm or bun depending on which one you use.

- name: Build Tauri app
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.
releaseName: 'App v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
Loading