-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support for macOS * Support for macOS * WIP: add timestamps * WIP: better bit counting * Fix compatibility on non Apple devices * Run on all branches * Parallelize build * Run on all branches * Fix macOS build * Fix macOS build * Fix macOS build * Fix macOS build * Fix macOS build * Fix macOS build
- Loading branch information
Showing
9 changed files
with
246 additions
and
62 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 |
---|---|---|
|
@@ -4,9 +4,6 @@ name: CMake on multiple platforms | |
|
||
on: | ||
push: | ||
branches: [ "main", "bugfix/workflow" ] | ||
paths-ignore: | ||
- '**/README.md' | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
|
@@ -25,7 +22,7 @@ jobs: | |
# | ||
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
os: [ubuntu-latest, windows-latest, macos-14] | ||
build_type: [Release] | ||
c_compiler: [gcc, clang, cl] | ||
include: | ||
|
@@ -35,7 +32,7 @@ jobs: | |
- os: ubuntu-latest | ||
c_compiler: gcc | ||
cpp_compiler: g++ | ||
- os: ubuntu-latest | ||
- os: macos-14 | ||
c_compiler: clang | ||
cpp_compiler: clang++ | ||
exclude: | ||
|
@@ -45,6 +42,12 @@ jobs: | |
c_compiler: clang | ||
- os: ubuntu-latest | ||
c_compiler: cl | ||
- os: macos-14 | ||
c_compiler: cl | ||
- os: macos-14 | ||
c_compiler: gcc | ||
- os: ubuntu-latest | ||
c_compiler: clang | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -64,8 +67,8 @@ jobs: | |
- name: Prepare Vulkan SDK | ||
uses: humbletim/[email protected] | ||
with: | ||
vulkan-query-version: 1.3.204.0 | ||
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang | ||
vulkan-query-version: latest | ||
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang, SPIRV-Tools | ||
vulkan-use-cache: true | ||
|
||
- name: Configure CMake | ||
|
@@ -81,7 +84,7 @@ jobs: | |
- name: Build | ||
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). | ||
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} | ||
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} -j3 | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
|
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
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
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
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
Oops, something went wrong.