From d87d46714abe52a2e237714d47ce5082e8d6e3ff Mon Sep 17 00:00:00 2001 From: mrlp4 Date: Tue, 13 Aug 2024 16:07:49 +0200 Subject: [PATCH 1/2] add tauriScript to build opt --- .github/workflows/build_tauri_app.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_tauri_app.yml b/.github/workflows/build_tauri_app.yml index 6c8764566..3c70c4f50 100644 --- a/.github/workflows/build_tauri_app.yml +++ b/.github/workflows/build_tauri_app.yml @@ -3,7 +3,7 @@ name: 'publish_tauri_app' on: push: branches: - - feat/tauri-app + - feat/tauri-app_build_action workflow_dispatch: jobs: @@ -58,6 +58,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }} with: + tauriScript: true tagName: cyb-tauri-${{ github.sha }} releaseName: 'App ${{ github.sha }}' releaseBody: 'See the assets to download this version and install.' From 2b8eff36d0a50d0f152a07252c8e1ae13376f4fc Mon Sep 17 00:00:00 2001 From: mrlp4 Date: Mon, 19 Aug 2024 17:02:21 +0200 Subject: [PATCH 2/2] debug tauri build workflow --- .github/workflows/build_tauri_app.yml | 32 ++++++++++++++------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build_tauri_app.yml b/.github/workflows/build_tauri_app.yml index 3c70c4f50..dfc9a52a6 100644 --- a/.github/workflows/build_tauri_app.yml +++ b/.github/workflows/build_tauri_app.yml @@ -2,8 +2,8 @@ name: 'publish_tauri_app' on: push: - branches: - - feat/tauri-app_build_action + tags: + - '*' workflow_dispatch: jobs: @@ -18,7 +18,7 @@ jobs: args: '--target aarch64-apple-darwin' - platform: 'macos-latest' # for Intel based macs. args: '--target x86_64-apple-darwin' - - platform: 'ubuntu-20.04' + - platform: 'ubuntu-22.04' args: '' - platform: 'windows-latest' args: '' @@ -26,23 +26,24 @@ jobs: runs-on: ${{ matrix.settings.platform }} steps: - uses: actions/checkout@v4 - - name: install dependencies (ubuntu only) - if: matrix.settings.platform == 'ubuntu-20.04' + if: matrix.settings.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 + sudo apt-get update + sudo apt-get install -y build-essential libssl-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf + echo "PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig" >> $GITHUB_ENV + echo "LIBRARY_PATH=\$LIBRARY_PATH:/usr/local/opt/openssl/lib" >> $GITHUB_ENV + echo "C_INCLUDE_PATH=\$C_INCLUDE_PATH:/usr/local/opt/openssl/include" >> $GITHUB_ENV - name: setup node uses: actions/setup-node@v4 with: - node-version: lts/* + node-version: 18 cache: 'yarn' - 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.settings.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} - name: Rust cache @@ -50,18 +51,19 @@ jobs: with: workspaces: './src-tauri -> target' - # - name: install frontend dependencies - # If you don't have `beforeBuildCommand` configured you may want to build your frontend here too. - # run: yarn install # change this to npm or pnpm depending on which one you use. - + - name: install deps + run: yarn add -D @tauri-apps/cli && yarn install + + - name: install frontend dependencies + run: yarn tauri build ${{ matrix.settings.args }} - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }} with: tauriScript: true tagName: cyb-tauri-${{ github.sha }} - releaseName: 'App ${{ github.sha }}' - releaseBody: 'See the assets to download this version and install.' + releaseName: 'Cyb standalone app ${{ github.sha }}' + releaseBody: 'See the assets to install this version.' releaseDraft: true prerelease: false args: ${{ matrix.settings.args }}