Update main.yml #5
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: CI/CD | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
release: | |
types: [published] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_mac: | |
name: Build on macOS (universal) | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create build directory | |
run: cmake -E make_directory ${{runner.workspace}}/build | |
- name: Configure everything | |
working-directory: ${{runner.workspace}}/build | |
run: cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" ../TE2PE/ | |
- name: Build everything | |
working-directory: ${{runner.workspace}}/build | |
shell: bash | |
run: cmake --build . --config Release | |
- name: Create dist directory | |
run: cmake -E make_directory ${{runner.workspace}}/dist | |
- name: Archive everything | |
working-directory: ${{runner.workspace}}/build | |
shell: bash | |
run: | | |
zip -qryj ../dist/te2pe_universal_mac.zip ./TE2PE/te2pe | |
- name: Upload to artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: macOS builds | |
path: dist/*.zip |