From ba0293fb471c26d429fd6395358bfa50f56e3767 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Mon, 2 Jan 2023 13:30:44 +0100 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 49 ++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c3e68ce..4602d95 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,11 +12,19 @@ concurrency: jobs: build-binaries: strategy: - fail-fast: false - matrix: - platform: [macos-latest, ubuntu-latest, windows-latest] + fail-fast: false + matrix: + 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: - uses: actions/checkout@v3 @@ -24,22 +32,28 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - - - name: install Rust stable + + - name: 'Setup Rust' uses: actions-rs/toolchain@v1 with: + default: true + override: true + profile: minimal toolchain: stable - + target: ${{ matrix.platform.rust_target }} + - uses: Swatinem/rust-cache@v2 - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-latest' + if: matrix.platform.os == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf + - uses: JonasKruckenberg/tauri-build@v1.2.2 id: tauri_build with: + target: ${{ matrix.platform.rust_target }} projectPath: ./test/fixture - run: | echo "${{ steps.tauri_build.outputs.artifacts }}" @@ -47,21 +61,4 @@ jobs: - uses: actions/upload-artifact@v3 with: name: artifacts - 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/**/* + path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}" \ No newline at end of file