mirror of
https://github.com/JonasKruckenberg/tauri-build.git
synced 2025-08-15 05:15:06 +00:00
Update test.yml
This commit is contained in:
parent
c65d28c254
commit
ba0293fb47
39
.github/workflows/test.yml
vendored
39
.github/workflows/test.yml
vendored
@ -14,9 +14,17 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform: [macos-latest, ubuntu-latest, windows-latest]
|
platform:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
rust_target: x86_64-unknown-linux-gnu
|
||||||
|
- os: macos-latest
|
||||||
|
rust_target: x86_64-apple-darwin
|
||||||
|
- os: macos-latest
|
||||||
|
rust_target: aarch64-apple-darwin
|
||||||
|
- os: windows-latest
|
||||||
|
rust_target: x86_64-pc-windows-msvc
|
||||||
|
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -25,21 +33,27 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
|
|
||||||
- name: install Rust stable
|
- name: 'Setup Rust'
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
|
default: true
|
||||||
|
override: true
|
||||||
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
target: ${{ matrix.platform.rust_target }}
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: install dependencies (ubuntu only)
|
- name: install dependencies (ubuntu only)
|
||||||
if: matrix.platform == 'ubuntu-latest'
|
if: matrix.platform.os == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
|
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
|
||||||
|
|
||||||
- uses: JonasKruckenberg/tauri-build@v1.2.2
|
- uses: JonasKruckenberg/tauri-build@v1.2.2
|
||||||
id: tauri_build
|
id: tauri_build
|
||||||
with:
|
with:
|
||||||
|
target: ${{ matrix.platform.rust_target }}
|
||||||
projectPath: ./test/fixture
|
projectPath: ./test/fixture
|
||||||
- run: |
|
- run: |
|
||||||
echo "${{ steps.tauri_build.outputs.artifacts }}"
|
echo "${{ steps.tauri_build.outputs.artifacts }}"
|
||||||
@ -48,20 +62,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: artifacts
|
name: artifacts
|
||||||
path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}"
|
path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}"
|
||||||
|
|
||||||
# publish:
|
|
||||||
# needs: build-binaries
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - uses: actions/download-artifact@v3
|
|
||||||
# id: download
|
|
||||||
# with:
|
|
||||||
# name: artifacts
|
|
||||||
# path: artifacts
|
|
||||||
# - name: "create release"
|
|
||||||
# uses: softprops/action-gh-release@master
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
# with:
|
|
||||||
# files: ./artifacts/**/*
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user