build macos all #38
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: build macos all | |
on: | |
# pull_request: | |
# branches: | |
# - main | |
workflow_dispatch: | |
workflow_call: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
strategy: | |
matrix: | |
runner: ["macOS-12", "macOS-13", "macOS-14"] | |
runs-on: ${{ matrix.runner }} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Check Runner | |
run: | | |
echo "suffix="$(uname -s).${{ matrix.runner }}.$(arch)"" >> $GITHUB_ENV | |
- name: Install Dependencies | |
run: | | |
brew install libomp eigen boost libtiff # llvm ? | |
- name: Build | |
continue-on-error: true | |
run: | | |
cd Cell2Fire | |
make clean | |
make -f makefile.macos-test | |
otool -L Cell2Fire_arm64 > otool_arm64 _${{ env.suffix }}.txt | |
otool -L Cell2Fire_x86_64 > otool_x86_64_${{ env.suffix }}.txt | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: binaries_${{ env.suffix }} | |
path: | | |
Cell2Fire/otool_arm64 _${{ env.suffix }}.txt | |
Cell2Fire/otool_x86_64 _${{ env.suffix }}.txt | |
Cell2Fire/Cell2Fire_arm64 _${{ env.suffix }} | |
Cell2Fire/Cell2Fire_x86_64 _${{ env.suffix }} | |