Skip to content

Commit

Permalink
Universal
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Nov 23, 2023
1 parent 5e7ab3f commit 2a784d3
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,25 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
settings:
- host: macos-latest
target: universal-apple-darwin
toolchain: aarch64-apple-darwin,x86_64-apple-darwin
bundles: app,dmg
os: darwin
- host: windows-latest
target: x86_64-pc-windows-msvc
toolchain: x86_64-pc-windows-msvc
bundles: msi
os: windows
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
toolchain: x86_64-unknown-linux-gnu
bundles: deb,appimage
os: linux
env:
APP_DIR: "apps/desktop"
runs-on: ${{ matrix.platform }}
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v4
- name: Setup node
Expand All @@ -48,9 +63,9 @@ jobs:
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
target: "x86_64-pc-windows-msvc,aarch64-apple-darwin,x86_64-apple-darwin,x86_64-unknown-linux-gnu"
target: "${{ matrix.settings.toolchain }}"
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
if: matrix.settings.host == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
Expand All @@ -71,6 +86,7 @@ jobs:
with:
projectPath: "${{ env.APP_DIR }}"
releaseId: ${{ needs.create-release.outputs.release_id }}
args: --target ${{ matrix.settings.target }} --bundles ${{ matrix.settings.bundles }},updater

sign-windows:
runs-on: ubuntu-latest
Expand All @@ -90,9 +106,6 @@ jobs:
const { script } = await import('${{ github.workspace }}/scripts/actions/download-draft-bins.js')
const id = "${{ needs.create-release.outputs.release_id }}";
await script({ github, context }, id);
env:
# TODO: is this even needed or does it auto inject?
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Presign
run: |
ls -hal binaries
Expand Down

0 comments on commit 2a784d3

Please sign in to comment.