-
Notifications
You must be signed in to change notification settings - Fork 41
63 lines (63 loc) · 1.85 KB
/
tagged-release.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
54
55
56
57
58
59
60
61
62
63
name: Tagged Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
release-mac:
runs-on: macos-latest
steps:
- name: ⬇️ Checkout sources
uses: actions/checkout@v3
- name: 🏗️ Setup project files
run: |
git submodule update --init
mkdir build
cd build
cmake -GXcode ..
- name: 🛠️ Build Hyde
run: |
cd build
xcodebuild -quiet -target hyde -configuration Release
- name: 🗜️ Create archive
run: |
cd build/Release
xattr -d com.apple.quarantine hyde
strip hyde
tar -zcvf hyde-${{github.ref_name}}-macos.tgz hyde
- name: ✍️ Post archive
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files:
build/Release/hyde-${{github.ref_name}}-macos.tgz
release-linux:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout sources
uses: actions/checkout@v3
- name: 🏗️ Setup project files
run: |
sudo apt-get install libllvm18 llvm-18 llvm-18-dev
sudo apt-get install clang-tools-18 libclang-common-18-dev clang-18 libclang-18-dev
sudo apt-get install ninja-build
git submodule update --init
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -GNinja ..
- name: 🛠️ Build Hyde
run: |
cd build
ninja
- name: 🗜️ Create archive
run: |
cd build
tar -zcvf hyde-${{github.ref_name}}-linux-${{runner.arch}}.tgz hyde
- name: ✍️ Post archive
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files:
build/hyde-${{github.ref_name}}-linux-${{runner.arch}}.tgz