-
-
Notifications
You must be signed in to change notification settings - Fork 292
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 div-0-should-crash
- Loading branch information
Showing
195 changed files
with
7,087 additions
and
1,154 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 5 * * 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,17 @@ | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 5 * * *' | ||
|
||
name: Clean up nix on mac mini m1 | ||
|
||
jobs: | ||
clean-mac-mini-arm64: | ||
runs-on: [self-hosted, macOS, ARM64] | ||
timeout-minutes: 120 | ||
steps: | ||
- name: Clean up nix store | ||
run: nix-store --gc | ||
|
||
- name: Clean up old nix shells | ||
run: rm -rf /private/tmp/nix-shell.* |
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,114 @@ | ||
on: | ||
pull_request: | ||
|
||
name: CI manager | ||
|
||
# cancel current runs when a new commit is pushed | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check-changes: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
run_tests: ${{ steps.filecheck.outputs.run_tests }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Check if only css, html or md files changed | ||
id: filecheck | ||
run: | | ||
git fetch origin ${{ github.base_ref }} | ||
if git diff --name-only origin/${{ github.base_ref }} HEAD | grep -qvE '(\.md$|\.css$|\.html$)'; then | ||
echo "run_tests=full" >> $GITHUB_OUTPUT | ||
else | ||
echo "run_tests=none" >> $GITHUB_OUTPUT | ||
fi | ||
- run: echo "debug output ${{ steps.filecheck.outputs.run_tests }}" | ||
|
||
start-nix-linux-x86-64-tests: | ||
needs: check-changes | ||
if: needs.check-changes.outputs.run_tests == 'full' | ||
uses: ./.github/workflows/nix_linux_x86_64.yml | ||
|
||
start-nix-linux-aarch64-build-default-test: | ||
needs: check-changes | ||
if: needs.check-changes.outputs.run_tests == 'full' | ||
uses: ./.github/workflows/nix_linux_arm64_default.yml | ||
|
||
start-nix-linux-aarch64-cargo-build-test: | ||
needs: check-changes | ||
if: needs.check-changes.outputs.run_tests == 'full' | ||
uses: ./.github/workflows/nix_linux_arm64_cargo.yml | ||
|
||
start-nix-macos-apple-silicon-tests: | ||
needs: check-changes | ||
if: needs.check-changes.outputs.run_tests == 'full' | ||
uses: ./.github/workflows/nix_macos_apple_silicon.yml | ||
|
||
start-macos-x86-64-tests: | ||
needs: check-changes | ||
if: needs.check-changes.outputs.run_tests == 'full' | ||
uses: ./.github/workflows/ubuntu_x86_64.yml | ||
|
||
start-ubuntu-x86-64-tests: | ||
needs: check-changes | ||
if: needs.check-changes.outputs.run_tests == 'full' | ||
uses: ./.github/workflows/ubuntu_x86_64.yml | ||
|
||
start-windows-release-build-test: | ||
needs: check-changes | ||
if: needs.check-changes.outputs.run_tests == 'full' | ||
uses: ./.github/workflows/windows_release_build.yml | ||
|
||
start-windows-tests: | ||
needs: check-changes | ||
if: needs.check-changes.outputs.run_tests == 'full' | ||
uses: ./.github/workflows/windows_tests.yml | ||
|
||
start-roc-benchmarks: | ||
needs: check-changes | ||
if: needs.check-changes.outputs.run_tests == 'full' | ||
uses: ./.github/workflows/benchmarks.yml | ||
|
||
ran-full: | ||
runs-on: ubuntu-22.04 | ||
needs: [ | ||
start-nix-linux-x86-64-tests, | ||
start-nix-linux-aarch64-build-default-test, | ||
start-nix-linux-aarch64-cargo-build-test, | ||
start-nix-macos-apple-silicon-tests, | ||
start-macos-x86-64-tests, | ||
start-ubuntu-x86-64-tests, | ||
start-windows-release-build-test, | ||
start-windows-tests, | ||
start-roc-benchmarks | ||
] | ||
steps: | ||
- run: echo "all workflows succeeded!" | ||
|
||
ran-none: | ||
runs-on: ubuntu-22.04 | ||
needs: [check-changes] | ||
if: needs.check-changes.outputs.run_tests == 'none' | ||
steps: | ||
- run: echo "Only non-code files changed. CI manager did not run any workflows." | ||
|
||
# we need a single end job for the required checks under branch protection rules | ||
finish: | ||
runs-on: ubuntu-22.04 | ||
needs: [ran-full, ran-none] | ||
if: | | ||
always() | ||
&& contains(needs.*.result, 'success') | ||
&& !contains(needs.*.result, 'failure') | ||
&& !contains(needs.*.result, 'cancelled') | ||
&& !(needs.ran-full.result == 'skipped' && needs.ran-none.result == 'skipped') | ||
steps: | ||
- run: echo "Workflow succeeded :)" | ||
|
||
|
||
|
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
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
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.