Bump version #12
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: "Build for Release" | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build-windows: | |
name: Build Release for Windows | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install CMake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '3.26' | |
- name: Configure CMake | |
run: cmake . | |
- name: Build Project | |
run: cmake --build . --config release | |
- name: Remove Dumb Windows Garbage | |
run: | | |
move ./bin/release/dll/Release/lib-jsxer.dll ./bin/release/dll/ | |
rm -r ./bin/release/dll/Release | |
move ./bin/release/static/Release/libjsxer.lib ./bin/release/static/ | |
rm -r ./bin/release/static/Release | |
move ./bin/release/Release/jsxer.exe ./bin/release/ | |
rm -r ./bin/release/Release | |
- name: Zip Artifacts | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
filename: ${{ format('jsxer-{0}-Windows.zip', github.ref_name) }} | |
path: './bin/release/' | |
- name: Attach Build Artifacts to Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: jsxer-${{ github.ref_name }}-Windows.zip | |
build-macos-arm64: | |
name: Build Release for macOS (arm64) | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install CMake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '3.26' | |
- name: Configure CMake | |
run: cmake . | |
- name: Build Project | |
run: cmake --build . --config release | |
- name: Zip Artifacts | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
filename: ${{ format('jsxer-{0}-macOS-arm64.zip', github.ref_name) }} | |
path: './bin/release/' | |
- name: Attach Build Artifacts to Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: jsxer-${{ github.ref_name }}-macOS-arm64.zip | |
build-macos-x86: | |
name: Build Release for macOS (x86) | |
# at the time of writing this, you need to have macos-13 in order to build for x86. | |
runs-on: macos-13 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install CMake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '3.26' | |
- name: Configure CMake | |
run: cmake . | |
- name: Build Project | |
run: cmake --build . --config release | |
- name: Zip Artifacts | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
filename: ${{ format('jsxer-{0}-macOS-x86.zip', github.ref_name) }} | |
path: './bin/release/' | |
- name: Attach Build Artifacts to Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: jsxer-${{ github.ref_name }}-macOS-x86.zip |