-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into WilfS/feature_nestedTubes
- Loading branch information
Showing
144 changed files
with
6,299 additions
and
7,632 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Build Docker Image | ||
|
||
on: | ||
schedule: | ||
- cron: '0 4 * * *' # Everyday at 4am UTC | ||
push: | ||
branches: [ main ] | ||
tags: | ||
- "v*.*.*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
# Don't let forks build containers | ||
if: github.repository == 'rat-pac/ratpac-two' | ||
permissions: | ||
packages: write | ||
contents: read | ||
attestations: write | ||
id-token: write | ||
steps: | ||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
ratpac/ratpac-two | ||
ghcr.io/${{ github.repository }} | ||
# generate Docker tags based on the following events/attributes | ||
# Using default, which should generate tags for branchs and `nightly` | ||
# tags: | | ||
# type=schedule | ||
# type=ref,event=branch | ||
# type=ref,event=workflow_dispatch | ||
# type=semver,pattern={{raw}} | ||
# type=sha | ||
- | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
id: push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
file: containers/Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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,41 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
rattest-name: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
rattest: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ratpac/ratpac-two:latest-base | ||
options: --user root | ||
steps: | ||
- name: Get build cache | ||
id: cache | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: ratpac2 | ||
key: ${{ github.sha }}-install | ||
- name: Run rattest | ||
working-directory: ratpac2 | ||
shell: bash | ||
run: | | ||
source /ratpac-setup/env.sh | ||
source ../ratpac2/ratpac.sh | ||
rattest -t test/full/${{ inputs.rattest-name }} | ||
id: test | ||
continue-on-error: true | ||
- name: upload-result | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.rattest-name }}-result | ||
if-no-files-found: error | ||
path: | | ||
ratpac2/test/full/${{ inputs.rattest-name }}/*.png | ||
ratpac2/test/full/${{ inputs.rattest-name }}/*.html | ||
- name: check-test-result | ||
if: steps.test.outcome != 'success' | ||
run: exit 1 | ||
|
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,42 @@ | ||
name: rattests | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ratpac/ratpac-two:latest-base | ||
options: --user root | ||
steps: | ||
- name: Checkout Ratpac2 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ratpac2 | ||
- name: Build Ratpac2 | ||
working-directory: ratpac2 | ||
shell: bash | ||
run: | | ||
source /ratpac-setup/env.sh | ||
make -j$(nproc) | ||
- name: Cache build output | ||
id: cache | ||
uses: actions/cache/save@v4 | ||
with: | ||
key: ${{ github.sha }}-install | ||
path: ratpac2 | ||
|
||
acrylic_attenuation: | ||
needs: build | ||
uses: ./.github/workflows/rattests-template.yml | ||
with: | ||
rattest-name: acrylic_attenuation | ||
|
||
fitcentroid: | ||
needs: build | ||
uses: ./.github/workflows/rattests-template.yml | ||
with: | ||
rattest-name: fitcentroid |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
version: 2 | ||
|
||
build: | ||
os: "ubuntu-20.04" | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.11" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
FROM ratpac/ratpac-two:base | ||
LABEL maintainer="Morgan Askins <maskins@berkeley.edu>" | ||
FROM ratpac/ratpac-two:latest-base | ||
LABEL maintainer="James Shen <[email protected].edu>" | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
USER ratuser | ||
|
||
WORKDIR /ratpac-setup | ||
|
||
RUN ./setup.sh --only ratpac -j6 | ||
RUN ./setup.sh --only ratpac -j$(nproc) | ||
RUN cd ratpac && cmake --install build && cd .. | ||
|
||
RUN sed -i '1s/^/#!\/bin\/bash\n/' /ratpac-setup/env.sh | ||
|
Oops, something went wrong.