-
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 branch 'refactor-host' of github.com:roc-lang/basic-cli into de…
…code
- Loading branch information
Showing
30 changed files
with
653 additions
and
258 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,44 +1,42 @@ | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
# this cancels workflows currently in progress if you start a new one | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-and-test-nix: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# macos-12 uses x86-64 machine, macos-14 uses aarch64 | ||
os: [ macos-12, macos-14, ubuntu-22.04 ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# install nix | ||
- uses: cachix/install-nix-action@v23 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: enigmaticsunrise | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
|
||
- name: print architecture | ||
run: uname -m | ||
|
||
- name: Run all tests | ||
run: nix develop -c sh -c 'export ROC=roc && export EXAMPLES_DIR=./examples/ && ./ci/all_tests.sh' | ||
|
||
- name: Run all tests and capture output to check for crash later | ||
run: nix develop -c sh -c 'export ROC=roc && export EXAMPLES_DIR=./examples/ && ./ci/all_tests.sh 2>&1 | tee all_tests_output.log' | ||
|
||
# Workaround for https://github.com/roc-lang/roc/issues/6688 | ||
- name: Check if crash occurred | ||
run: grep -qv "crashed" all_tests_output.log | ||
|
||
|
||
build-and-test-nix: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# macos-12 uses x86-64 machine, macos-14 uses aarch64 | ||
os: [macos-12, macos-14, ubuntu-22.04] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# install nix | ||
- uses: cachix/install-nix-action@v23 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: enigmaticsunrise | ||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
|
||
- name: print architecture | ||
run: uname -m | ||
|
||
- name: Run all tests | ||
run: nix develop -c sh -c 'export ROC=roc && export EXAMPLES_DIR=./examples/ && ./ci/all_tests.sh' | ||
|
||
- name: Run all tests and capture output to check for crash later | ||
run: nix develop -c sh -c 'export ROC=roc && export EXAMPLES_DIR=./examples/ && ./ci/all_tests.sh 2>&1 | tee all_tests_output.log' | ||
|
||
# Workaround for https://github.com/roc-lang/roc/issues/6688 | ||
- name: Check if crash occurred | ||
run: grep -qv "crashed" all_tests_output.log |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.