-
Notifications
You must be signed in to change notification settings - Fork 30
feat: add macos arm64 build #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,11 +6,11 @@ on: | |
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build-linux: | ||
| build-linux-amd64: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Set up CMake | ||
| uses: jwlawson/actions-setup-cmake@v2 | ||
|
|
@@ -41,11 +41,11 @@ jobs: | |
| draft: false | ||
| overwrite: true | ||
|
|
||
| build-arm: | ||
| build-linux-arm64: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Set up CMake | ||
| uses: jwlawson/actions-setup-cmake@v2 | ||
|
|
@@ -61,7 +61,7 @@ jobs: | |
| cmake --build ${{github.workspace}}/build-arm | ||
| cd ${{github.workspace}}/build-arm | ||
| cpack -C Release | ||
|
|
||
| - name: 'Upload ARM artifacts' | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
|
|
@@ -81,11 +81,71 @@ jobs: | |
| draft: false | ||
| overwrite: true | ||
|
|
||
| build-darwin-arm64: | ||
| runs-on: macos-13-xlarge | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Build macOS ARM64 (Apple Silicon) | ||
| run: | | ||
| cmake -S ${{github.workspace}} -B ${{github.workspace}}/build-darwin -DUNIVERSAL=FALSE -DCMAKE_OSX_ARCHITECTURES=arm64 -DARM=1 -DCMAKE_BUILD_TYPE=Release | ||
| cmake --build ${{github.workspace}}/build-darwin | ||
| cd ${{github.workspace}}/build-darwin | ||
| # Builds OpenAPV-0.2.0.3-Darwin.tar.gz | ||
| cpack -C Release -G TGZ | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: openapv-darwin-${{github.event.release.tag_name}} | ||
| path: | | ||
| ${{ github.workspace }}/build-darwin/*.tar.gz | ||
| ${{ github.workspace }}/build-darwin/*.md5 | ||
| retention-days: 7 | ||
|
|
||
| - uses: xresloader/upload-to-github-release@v1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| file: "build-darwin/*.tar.gz; build-darwin/*.md5" | ||
| update_latest_release: true | ||
| draft: false | ||
| overwrite: true | ||
|
|
||
| build-darwin-universal: | ||
| runs-on: macos-13-xlarge | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Build macOS Universal (ARM64 + AMD64) | ||
| run: | | ||
| cmake -S ${{github.workspace}} -B ${{github.workspace}}/build -DCMAKE_TOOLCHAIN_FILE=macos_universal_toolchain.cmake -DUNIVERSAL=1 -DCMAKE_BUILD_TYPE=Release | ||
| cmake --build ${{github.workspace}}/build | ||
| cd ${{github.workspace}}/build | ||
| # Builds OpenAPV-0.2.0.3-Darwin.dmg | ||
|
||
| cpack -C Release -G DragNDrop | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: openapv-universal-${{github.event.release.tag_name}} | ||
| path: | | ||
| ${{ github.workspace }}/build/*.dmg | ||
| ${{ github.workspace }}/build/*.md5 | ||
| retention-days: 7 | ||
|
|
||
| - uses: xresloader/upload-to-github-release@v1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| file: "build/*.dmg; build/*.md5" | ||
| update_latest_release: true | ||
| draft: false | ||
| overwrite: true | ||
|
|
||
| build-windows: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Set up CMake | ||
| uses: jwlawson/actions-setup-cmake@v2 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,6 +68,24 @@ The APV codec standard has the following features: | |
| cmake --build build-windows | ||
| ``` | ||
|
|
||
| - Build Instructions macOS (Apple Silicon) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The following build commands can also be added :-
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you, done. |
||
| ``` | ||
| cmake -S . -B build-darwin -DUNIVERSAL=FALSE -DCMAKE_OSX_ARCHITECTURES=arm64 -DARM=1 -DCMAKE_BUILD_TYPE=Release | ||
| cmake --build build-darwin | ||
| ``` | ||
|
|
||
| - Build Instructions macOS (Universal) | ||
| ``` | ||
| cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=macos_universal_toolchain.cmake -DUNIVERSAL=1 -DCMAKE_BUILD_TYPE=Release | ||
| cmake --build build | ||
| ``` | ||
|
|
||
| - Build Instructions iOS (ARM64) | ||
| ``` | ||
| cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=ios_arm64_toolchain.cmake -DCMAKE_BUILD_TYPE=Release | ||
| cmake --build build | ||
| ``` | ||
|
|
||
| - Output Location | ||
| - Executable applications can be found under build*/bin/ | ||
| - Library files can be found under build*/lib/ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove that comment with hardcoded version