updating version script #23
Workflow file for this run
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*.*.*" | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: macos-latest | |
steps: | |
- name: 🐍 Python setup | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: ⬇️ Checkout sources | |
uses: actions/checkout@v3 | |
- name: 🏗️ Setup project files | |
run: | | |
mkdir build | |
cd build | |
cmake -DTRACY_ENABLE=OFF -DORC_BUILD_EXAMPLES=0 -GXcode .. | |
- name: 📝 Set Version Details | |
run: | | |
./set_build_version.sh ${{github.ref_name}} ${{github.sha}} | |
- name: 🛠️ Build ORC | |
run: | | |
xcodebuild -json -project ./build/orc.xcodeproj -scheme orc_orc -configuration Release -hideShellScriptEnvironment ARCHS="x86_64 arm64" | |
- name: 🗜️ Create archive | |
run: | | |
cd build/Release | |
tar -zcvf orc-${{github.ref_name}}-${{runner.os}}-fat64.tgz orc | |
- name: ✍️ Post archive | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
files: | |
build/Release/orc-${{github.ref_name}}-${{runner.os}}-fat64.tgz |