-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (50 loc) · 1.34 KB
/
Copy pathmac_build.yaml
File metadata and controls
59 lines (50 loc) · 1.34 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
name: Mac Build
on:
workflow_dispatch:
inputs:
tag:
description: 'tag'
default: '1.0'
required: true
type: string
jobs:
compile:
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Compile Interpreter
run: scripts/mac/compile_interpreter.sh
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: interpreter
path: bin/build/interp/mac/vortex
- name: Compile Modules
run: scripts/mac/compile_modules.sh
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: modules
path: bin/build/modules/mac/**/*
- name: Create dist folder
run: |
mkdir -p dist
cp bin/build/interp/mac/vortex dist
for module in bin/build/modules/mac/*;
do
m=$(basename $module)
pushd bin/build/modules/mac
zip -r -y ${m}.zip ${m};
popd
mv bin/build/modules/mac/${m}.zip dist
done
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${{ inputs.tag }} dist/* \
--repo="$GITHUB_REPOSITORY" \
--title="Vortex-Mac-${{ inputs.tag }}" \
--generate-notes \
--latest