reset URL via git remote set-url
, update boost
#34
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 Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
# ==== BUILD ==== | |
- name: CMake | |
run: | | |
cmake \ | |
-S . -B build \ | |
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \ | |
-DCMAKE_BUILD_TYPE=Release | |
- name: Build | |
run: cmake --build build --target pkg pkg-test | |
- name: Run Tests | |
run: ./build/pkg-test | |
# ==== DISTRIBUTION ==== | |
- name: Upload Distribution | |
uses: actions/upload-artifact@v2 | |
with: | |
name: pkg-macos-amd64 | |
path: ./build/pkg | |
- name: Upload Distribution (Legacy Naming) | |
uses: actions/upload-artifact@v2 | |
with: | |
name: pkgosx | |
path: ./build/pkg | |
# ==== RELEASE ==== | |
- name: Upload Release | |
if: github.event.action == 'published' | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./build/pkg | |
asset_name: pkg-macos | |
asset_content_type: application/x-tar | |
- name: Upload Release (Legacy Naming) | |
if: github.event.action == 'published' | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./build/pkg | |
asset_name: pkgosx | |
asset_content_type: application/x-tar |