-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into surface-insert-opt
- Loading branch information
Showing
493 changed files
with
18,294 additions
and
5,759 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# Build directly on the GitHub runner with caching | ||
name: build-ultralite | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
concurrency: | ||
group: build-ultralite-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}-${{github.workflow}} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
linux: | ||
name: ultralite-ubuntu | ||
env: | ||
CCACHE_DIR: "${{github.workspace}}/.ccache" | ||
CCACHE_MAXSIZE: "20Mi" | ||
CMAKE_PRESET: ultralite | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get -q -y update | ||
sudo apt-get -q -y install \ | ||
ccache cmake ninja-build | ||
- name: Check out Celeritas | ||
uses: actions/checkout@v4 | ||
- name: Cache ccache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{env.CCACHE_DIR}} | ||
key: ccache-ultralite-ubuntu-${{github.run_id}} | ||
restore-keys: | | ||
ccache-ultralite | ||
- name: Zero ccache stats | ||
run: | | ||
ccache -z | ||
- name: Configure Celeritas | ||
run: | | ||
ln -fs scripts/cmake-presets/ci-ubuntu-github.json CMakeUserPresets.json | ||
cmake --preset=${CMAKE_PRESET} \ | ||
-DCeleritas_GIT_DESCRIBE="${{github.event.pull_request | ||
&& format(';-pr.{0};', github.event.pull_request.number) | ||
|| format(';-{0};', github.ref_name)}}" | ||
- name: Build all | ||
working-directory: build | ||
run: | | ||
ninja | ||
- name: Run tests | ||
working-directory: build | ||
run: | | ||
ctest --parallel $(nproc) --timeout 15 --output-on-failure | ||
- name: Install | ||
working-directory: build | ||
run: | | ||
ninja install | ||
- name: Check installation | ||
working-directory: install | ||
run: | | ||
./bin/celer-sim --version | ||
- name: Show ccache stats | ||
if: ${{!cancelled()}} | ||
run: | | ||
ccache -s | ||
windows: | ||
name: ultralite-windows | ||
env: | ||
CCACHE_DIR: "${{github.workspace}}\\.ccache" | ||
CCACHE_MAXSIZE: "20Mi" | ||
CMAKE_PRESET: ultralite | ||
runs-on: windows-latest | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
choco install ninja ccache | ||
- name: Check out Celeritas | ||
uses: actions/checkout@v4 | ||
- name: Set up MSVC | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
- name: Cache ccache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{env.CCACHE_DIR}} | ||
key: ccache-ultralite-windows-${{github.run_id}} | ||
restore-keys: | | ||
ccache-ultralite | ||
- name: Zero ccache stats | ||
run: | | ||
ccache -z | ||
- name: Configure Celeritas | ||
shell: pwsh | ||
run: | | ||
Copy-Item scripts/cmake-presets/ci-windows-github.json -Destination CMakeUserPresets.json | ||
cmake --preset=$Env:CMAKE_PRESET ` | ||
-DCeleritas_GIT_DESCRIBE="${{github.event.pull_request | ||
&& format(';-pr.{0};', github.event.pull_request.number) | ||
|| format(';-{0};', github.ref_name)}}" | ||
- name: Build all | ||
run: | | ||
cmake --build --preset=$Env:CMAKE_PRESET | ||
- name: Test all | ||
continue-on-error: true | ||
run: | | ||
ctest --preset=$Env:CMAKE_PRESET | ||
- name: Show ccache stats | ||
if: ${{!cancelled()}} | ||
run: | | ||
ccache -s | ||
# vim: set nowrap tw=100: |
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
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.