-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (42 loc) · 1.21 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
# - ubuntu-latest
# - windows-latest
- macOS-latest
steps:
- uses: actions/checkout@v3
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: '2.0.6'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Inject version string
run: |
set -x
VERSION=$(cat CURRENT_VERSION)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Install Nim dependencies
run: nimble -y install koi osdialog riff semver winim with
- name: macOS arm64 release build
run: nim -f releaseMacX64
- name: macOS x86-64 release build
run: nim -f releaseMacArm64
- name: Create macOS universal binary
run: nim mergeMacUniversal
- name: Create macOS app bundle package
run: nim packageMac
- name: Upload release artifact
uses: actions/upload-artifact@v4
with:
name: gridmonger-v${{ env.VERSION }}-macos
path: gridmonger-v${{ env.VERSION }}-macos.zip
overwrite: true