Add more CI build targets #406
Workflow file for this run
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
name: test matrix | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.ref != 'refs/heads/master' | |
steps: | |
- uses: actions/[email protected] | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: miso-haskell | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- name: Dependency install | |
run: nix-build -A pkgs.yarn default.nix && nix-env -i ./result | |
- name: (JS) Miso GHCJS build | |
run: nix-build -A miso-ghcjs | |
- name: (x86) Miso GHC build | |
run: nix-build -A miso-ghc | |
- name: (x86) Haskell-miso.org server build | |
run: nix-build -A server | |
- name: (JS) Haskell-miso.org client build | |
run: nix-build -A client | |
- name: (JS) Miso examples | |
run: nix-build -A miso-examples | |
- name: (x86) Miso examples | |
run: nix-build -A miso-examples-ghc | |
- name: (JS) Miso sample app | |
run: nix-build -A sample-app | |
- name: (x86) Miso sample app jsaddle | |
run: nix-build -A sample-app-jsaddle | |
- name: Diffing tests | |
run: cd tests && yarn && yarn test | |
deploy: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- uses: actions/[email protected] | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: miso-haskell | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- name: Miso build | |
run: nix-build -j1 | |
- name: Deploy | |
run: nix-build -A deploy -j1 && ./result | |
env: | |
AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}' | |
AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}' | |
DEPLOY: '${{ secrets.DEPLOY }}' | |
EMAIL: '${{ secrets.EMAIL }}' |