diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7093bc700..fce99c33d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,8 +10,14 @@ jobs: strategy: fail-fast: false matrix: - platform: [macos-latest, windows-latest] - runs-on: ${{ matrix.platform }} + settings: + - platform: windows-latest + args: '-- --profile release-lto' + - platform: macos-latest + args: '--target universal-apple-darwin -- --profile release-lto' + - platform: ubuntu-latest + args: '-- --profile release-lto' + runs-on: ${{ matrix.settings.platform }} steps: - name: Checkout repository @@ -25,6 +31,12 @@ jobs: with: workspaces: "./src-tauri -> target" + - name: Install dependencies (Ubuntu only) + if: matrix.settings.platform == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.0-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev + - name: Sync node version and setup cache uses: actions/setup-node@v4 with: @@ -41,7 +53,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - args: "-- --profile release-lto" # args for tauri build + args: ${{ matrix.settings.args }} # args for tauri build tagName: ${{ github.event.release.tag_name }} releaseName: "PLATEAU GIS Converter v__VERSION__" releaseDraft: true