Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Mac用リリースを Universal Binary (Apple Silicon & Intel) にする #502

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down
Loading