-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an attempt at CI for cross compilers
- Loading branch information
Showing
1 changed file
with
39 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
name: ghc-nix | ||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | ||
|
||
- name: Check nix flake | ||
- name: Check nix flake | ||
run: nix flake check ghc.nix# -Lv --impure --fallback | ||
|
||
- name: Run nix-shell - Boot and Configure | ||
|
@@ -75,3 +75,41 @@ jobs: | |
|
||
- name: Run nix develop - Test GHC (by running a testsuite subset) | ||
run: nix develop -Lv --fallback ghc.nix# -c bash -c "hadrian/build -j --flavour=quickest test --test-root-dirs=testsuite/tests/programs" | ||
|
||
cross_compiler_smoketest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Prepare git | ||
run: | ||
git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/ && | ||
git config --global url."http://github.com/ghc/packages-".insteadOf http://github.com/ghc/packages/ && | ||
git config --global url."https://github.com/ghc/packages-".insteadOf https://github.com/ghc/packages/ && | ||
git config --global url."ssh://[email protected]/ghc/packages-".insteadOf ssh://[email protected]/ghc/packages/ && | ||
git config --global url."[email protected]:ghc/packages-".insteadOf [email protected]:ghc/packages/ | ||
|
||
- name: Checkout GHC | ||
uses: actions/[email protected] | ||
with: | ||
repository: ghc/ghc | ||
submodules: recursive | ||
|
||
- name: Checkout ghc.nix | ||
uses: actions/[email protected] | ||
with: | ||
path: ghc.nix | ||
|
||
- name: Install nix | ||
uses: cachix/install-nix-action@v20 | ||
|
||
- name: Use cachix | ||
uses: cachix/cachix-action@v12 | ||
with: | ||
name: ghc-nix | ||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | ||
|
||
- name: "wasi-cross: Run nix develop - Boot and Configure" | ||
run: nix develop -Lv --fallback ghc.nix#wasi-cross -c bash -c "./boot && configure_ghc" | ||
|
||
- name: "js-cross: Run nix develop - Boot and Configure" | ||
run: nix develop -Lv --fallback ghc.nix#js-cross -c bash -c "./boot && configure_ghc" |