-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from AngeloD2022/feat/macos-universal
Update minimum CMake version and MacOS architectures
- Loading branch information
Showing
3 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
- name: Install CMake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.25.2' | ||
cmake-version: '3.26' | ||
|
||
- name: Configure CMake | ||
run: cmake . | ||
|
@@ -46,8 +46,8 @@ jobs: | |
with: | ||
files: jsxer-${{ github.ref_name }}-Windows.zip | ||
|
||
build-macos: | ||
name: Build Release for macOS | ||
build-macos-arm64: | ||
name: Build Release for macOS (arm64) | ||
runs-on: macos-latest | ||
|
||
steps: | ||
|
@@ -57,7 +57,7 @@ jobs: | |
- name: Install CMake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.25.2' | ||
cmake-version: '3.26' | ||
|
||
- name: Configure CMake | ||
run: cmake . | ||
|
@@ -69,11 +69,43 @@ jobs: | |
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: ${{ format('jsxer-{0}-macOS.zip', github.ref_name) }} | ||
filename: ${{ format('jsxer-{0}-macOS-arm64.zip', github.ref_name) }} | ||
path: './bin/release/' | ||
|
||
- name: Attach Build Artifacts to Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: jsxer-${{ github.ref_name }}-macOS.zip | ||
files: jsxer-${{ github.ref_name }}-macOS-arm64.zip | ||
|
||
build-macos-x86: | ||
name: Build Release for macOS (x86) | ||
|
||
# at the time of writing this, you need to have macos-13 in order to build for x86. | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install CMake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.26' | ||
|
||
- name: Configure CMake | ||
run: cmake . | ||
|
||
- name: Build Project | ||
run: cmake --build . --config release | ||
|
||
- name: Zip Artifacts | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: ${{ format('jsxer-{0}-macOS-x86.zip', github.ref_name) }} | ||
path: './bin/release/' | ||
|
||
- name: Attach Build Artifacts to Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: jsxer-${{ github.ref_name }}-macOS-x86.zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,9 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest] | ||
# macos arm64, macos x86_64, and windows | ||
# at the time of writing this, you need to have macos-13 in order to build for x86. | ||
os: [macos-latest, macos-13, windows-latest] | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -18,7 +20,7 @@ jobs: | |
- name: Install CMake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.25.2' | ||
cmake-version: '3.26' | ||
|
||
- name: Configure CMake | ||
run: cmake . | ||
|
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