Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Broken-Deer committed Aug 14, 2024
1 parent d92f7f8 commit 5ca4055
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ env:
VERSION: 0.1.0

jobs:
get-version:
runs-on: ubuntu-22.04
steps:
- name: Get app version
run: echo "APP_VERSION=$(jq -r .version src-tauri/tauri.conf.json)" >> $GITHUB_ENV
build-arm-linux:
runs-on: ubuntu-22.04
strategy:
Expand Down Expand Up @@ -92,6 +97,7 @@ jobs:
name: AppImage Bundle
path: ${{ github.workspace }}/src-tauri/target/release/bundle/appimage/appname_${{ env.APP_VERSION }}_${{ matrix.appimage }}.AppImage
build-other:
needs: [get-version]
permissions:
contents: write
strategy:
Expand All @@ -103,7 +109,7 @@ jobs:
arch: "aarch64"
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin"
arch: "x86_64"
arch: "x64"
- platform: "ubuntu-22.04"
args: ""
- platform: "windows-latest"
Expand Down Expand Up @@ -143,8 +149,6 @@ jobs:
- 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: Get app version
run: echo "APP_VERSION=$(jq -r .version src-tauri/tauri.conf.json)" >> $GITHUB_ENV

- name: Build the app
run: |
Expand Down Expand Up @@ -201,7 +205,7 @@ jobs:
if: matrix.platform == 'macos-latest'
with:
name: MacOS ${{ matrix.arch }} bundle(app)
path: ${{ github.workspace }}/src-tauri/target/${{matrix.arch}}-apple-darwin/release/bundle/dmg/amethyst-launcher.app
path: ${{ github.workspace }}/src-tauri/target/${{matrix.arch}}-apple-darwin/release/bundle/macos/amethyst-launcher.app
# - uses: tauri-apps/tauri-action@v0
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 5ca4055

Please sign in to comment.