Skip to content

Doc: update README.md (#17) #39

Doc: update README.md (#17)

Doc: update README.md (#17) #39

Workflow file for this run

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