46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
# 2020-08-02: NOTE: GHCJS fails for number of month, and makes GitHub CI "red", because team does not care and not pursue GHCJS build currently - there is no need to test for it. Technically compilation directly to WebAssembly looks much easier task than keeping HQ compilation to JS. WebAssembly compilation https://github.com/tweag/asterius look much more promising.
|
|
# 2020-08-02: FIXME: If this is not needed after some time - remove the file.
|
|
name: "Nixpkgs, Linux, GHCJS"
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
schedule:
|
|
# Every day at 05:45
|
|
- cron: "45 05 * * *"
|
|
|
|
env:
|
|
useRev: "true"
|
|
rev: "nixos-unstable"
|
|
cachixAccount: "hnix"
|
|
# GitHub secret
|
|
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
|
linkWithGold: "true"
|
|
compiler: "ghcjs"
|
|
ghcjsTmpLogFile: "/tmp/ghcjsTmpLogFile.log"
|
|
ghcjsLogTailLength: "10000"
|
|
|
|
jobs:
|
|
build10:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
continue-on-error: true
|
|
steps:
|
|
- name: Git checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@v10
|
|
- name: Install Cachix
|
|
uses: cachix/cachix-action@v6
|
|
with:
|
|
name: ${{ env.cachixAccount }}
|
|
- name: Determined Nix-build
|
|
run: ./build.sh
|
|
- name: Print log tail
|
|
if: always()
|
|
run: tail -n "$ghcjsLogTailLength" "$ghcjsTmpLogFile" && rm "$ghcjsTmpLogFile"
|