Skip to content

Commit

Permalink
ping-viewer-next-desktop: test
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin committed Sep 25, 2024
1 parent a6b2593 commit 336376f
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,26 @@ jobs:
prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }}
overwrite: true

publish-tauri:
build-tauri:
needs: quick-tests
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
- platform: 'macos-latest'
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
label: 'Mac-M1'
- platform: 'macos-latest'
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
label: 'Mac-x86'
- platform: 'ubuntu-22.04'
args: ''
label: 'Linux'
- platform: 'windows-latest'
args: ''
label: 'Windows'

runs-on: ${{ matrix.platform }}
steps:
Expand Down Expand Up @@ -152,14 +156,17 @@ jobs:
cd ping-viewer-next-desktop
bun install
- uses: tauri-apps/[email protected]
- name: Build the app
id: tauri-build
uses: tauri-apps/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: './ping-viewer-next-desktop'
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 }}

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: 'ping-viewer_${{steps.tauri-build.outputs.appVersion}}_${{ matrix.label }}'
path: "${{ join(fromJSON(steps.tauri-build.outputs.artifactPaths), '\n') }}"

0 comments on commit 336376f

Please sign in to comment.