forked from avibrazil/RDM
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.56 KB
/
Copy pathmakefile.yml
File metadata and controls
64 lines (54 loc) · 1.56 KB
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
54
55
56
57
58
59
60
61
62
63
64
name: Build RDM
on:
push:
branches:
- main
- 'release/*'
tags:
- 'v*'
workflow_dispatch:
jobs:
build-macos:
runs-on: macos-latest
strategy:
matrix:
arch: [arm64, x86_64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build RDM for ${{ matrix.arch }}
run: |
make clean
make ARCH=${{ matrix.arch }}
- name: Remove quarantine attribute
run: |
xattr -r -d com.apple.quarantine ./RDM.app || true
- name: Package RDM.app
run: |
mkdir -p build/${{ matrix.arch }}
cp -R ./RDM.app build/${{ matrix.arch }}/RDM-${{ matrix.arch }}.app
cd build/${{ matrix.arch }}
zip -r RDM-${{ matrix.arch }}.zip RDM-${{ matrix.arch }}.app
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: RDM-${{ matrix.arch }}
path: build/${{ matrix.arch }}/RDM-${{ matrix.arch }}.zip
merge-and-release:
runs-on: macos-latest
needs: build-macos
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: ./artifacts
- name: List downloaded artifacts
run: |
ls -R ./artifacts
- name: Upload to GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: artifacts/RDM-arm64/RDM-arm64.zip,artifacts/RDM-x86_64/RDM-x86_64.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}