update to Boost 1.86 #146
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: "MacOS" | |
on: | |
push: | |
pull_request: | |
jobs: | |
build-macos: | |
name: ${{ matrix.os }} Build FreeOrion SDK | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-13] | |
env: | |
CMAKE_BUILD_PARALLEL_LEVEL: 2 | |
HOMEBREW_NO_AUTO_UPDATE: 1 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Configure | |
run: | | |
mkdir build | |
cd build | |
xcodes select 14.1 | |
cmake -DCMAKE_XCODE_BUILD_SYSTEM=1 .. | |
- name: Build | |
run: | | |
cd build | |
cmake --build . --config RelWithDebInfo | |
- name: Artifact | |
uses: actions/upload-artifact@v4 | |
if: ${{ !startsWith(github.ref, 'refs/tags/v') }} | |
with: | |
name: MacOS SDK | |
path: | | |
build/FreeOrionSDK_*.tar.bz2 | |
- name: Prepare Release | |
if: startsWith(github.ref, 'refs/tags/v') | |
id: prepare-release-options | |
run: | | |
echo "release-name=$(git tag -ln --format '%(subject)' ${{ github.ref_name }})" >> $GITHUB_OUTPUT | |
- uses: softprops/action-gh-release@v1 | |
name: Release | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
name: ${{ steps.prepare-release-options.outputs.release-name }} | |
draft: true | |
files: | | |
build/FreeOrionSDK_*.tar.bz2 | |
token: ${{ secrets.RELEASE_TOKEN }} |