Tagged Release #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tagged Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
workflow_dispatch: null | |
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 | |
# "No such xattr: com.apple.quarantine" | |
# 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: Install LLVM and Clang | |
uses: KyleMayes/install-llvm-action@v2 | |
with: | |
version: "18" | |
- name: 🏗️ Setup project files | |
run: | | |
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 |