macOS Build #1
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: macOS Build | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- uuu* | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
build: | |
name: macOS Build | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up environment | |
run: brew install libusb pkg-config zstd | |
- name: Build | |
run: | | |
git fetch --tags --force # Retrieve annotated tags. #issue 290 | |
export PATH="/usr/local/Cellar/pkg-config/0.29.2_3/bin:${PATH}"; pkg-config --list-all; cmake -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl . ; make | |
- name: Rename | |
run: cp uuu/uuu uuu_mac | |
- name: Upload Build Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: uuu_mac | |
path: uuu/uuu | |
- name: Create or Update Release | |
if: github.ref_type == 'tag' | |
uses: ncipollo/release-action@v1 | |
with: | |
name: Release ${{ github.ref_name }} | |
tag: ${{ github.ref_name }} | |
commit: ${{ github.sha }} | |
allowUpdates: true | |
prerelease: true | |
artifacts: "uuu_mac" |