Skip to content

Commit 65f00ae

Browse files
Merge pull request haskell-nix#7 from Anton-Latukha/2020-07-07-workflow-add-Nixpkgs-GHCJS
GitHub CI: workflow: add Nixpkgs GHCJS
2 parents 8c43420 + 2920fc9 commit 65f00ae

File tree

3 files changed

+67
-17
lines changed

3 files changed

+67
-17
lines changed

.github/workflows/Nixpkgs-GHCJS.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Nixpkgs, GHCJS, Linux"
2+
on:
3+
# On Git changes in PR
4+
pull_request:
5+
# On Git changes of the master
6+
push:
7+
branches:
8+
- master
9+
schedule:
10+
# Every day at 03:45
11+
- cron: "45 05 * * *"
12+
env:
13+
compiler: "ghcjs"
14+
ghcjsTmpLogFile: "/tmp/ghcjsTmpLogFile.log"
15+
ghcjsLogTailLength: "10000"
16+
jobs:
17+
build10:
18+
name: GHCJS
19+
runs-on: ubuntu-latest
20+
continue-on-error: true
21+
steps:
22+
- name: Git checkout
23+
uses: actions/checkout@v2
24+
- name: Install Nix
25+
uses: cachix/install-nix-action@v10
26+
- name: Determined nix-build
27+
run: ./build.sh

.github/workflows/Nixpkgs-macOS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
# Every day at 04:45
1212
- cron: "45 01 * * *"
1313
jobs:
14-
Nixpkgs_unstable_macOS:
14+
build10:
1515
name: NixOS-unstable, default GHC (8.8)
1616
runs-on: macos-latest
1717
continue-on-error: true

.github/workflows/main.yml

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CI"
1+
name: "Nixpkgs, Linux"
22
on:
33
# On Git changes in PR
44
pull_request:
@@ -30,7 +30,7 @@ env:
3030
failOnAllWarnings: "false"
3131
enableDeadCodeElimination: "false"
3232
disableOptimization: "true"
33-
linkWithGold: "false"
33+
linkWithGold: "true"
3434
enableLibraryProfiling: "false"
3535
enableExecutableProfiling: "false"
3636
doTracing: "false"
@@ -48,26 +48,36 @@ env:
4848
doBenchmark: "false"
4949
generateOptparseApplicativeCompletions: "false"
5050
executableNamesToShellComplete: '[ "replaceWithExecutableName" ]'
51-
#
52-
withHoogle: "false"
53-
#
54-
ghcjsTmpLogFile: "/tmp/ghcjsTmpLogFile.log"
55-
ghcjsLogTailLength: "10000"
5651

5752
jobs:
58-
Nixpkgs_default_Linux:
59-
name: Nixpkgs, NixOS unstable channel, default (GHC 8.8), Linux
53+
build10:
54+
name: "Nixpkgs-unstable channel, default GHC (8.8.3)"
6055
runs-on: ubuntu-latest
6156
continue-on-error: true
57+
env:
58+
rev: "nixpkgs-unstable"
59+
steps:
60+
- name: Git checkout
61+
uses: actions/checkout@v2
62+
- name: Install Nix
63+
uses: cachix/install-nix-action@v10
64+
- name: Determined nix-build
65+
run: ./build.sh
66+
build20:
67+
name: "NixOS-unstable channel, Strict build, default GHC (8.8.3)"
68+
runs-on: ubuntu-latest
69+
continue-on-error: true
70+
env:
71+
buildStrictly: "true"
6272
steps:
6373
- name: Git checkout
6474
uses: actions/checkout@v2
6575
- name: Install Nix
6676
uses: cachix/install-nix-action@v10
6777
- name: Determined nix-build
6878
run: ./build.sh
69-
Nixpkgs_stable_Linux:
70-
name: Nixpkgs, NixOS stable channel, default (GHC 8.8), Linux
79+
build30:
80+
name: "NixOS 20.03 stable channel, default GHC (8.8.3)"
7181
runs-on: ubuntu-latest
7282
continue-on-error: true
7383
env:
@@ -79,8 +89,8 @@ jobs:
7989
uses: cachix/install-nix-action@v10
8090
- name: Determined nix-build
8191
run: ./build.sh
82-
Nixpkgs_SDist_Optimize_Benchmark_Haddock_GHC-8-10_Linux:
83-
name: Nixpkgs, SDist, Optimize, Benchmark, Haddock, GHC 8.10.1, Linux
92+
build40:
93+
name: "Quality test, SDist, Optimization, Benchmark, Haddock, GHC 8.10.1"
8494
runs-on: ubuntu-latest
8595
continue-on-error: true
8696
env:
@@ -100,12 +110,25 @@ jobs:
100110
uses: cachix/install-nix-action@v10
101111
- name: Determined nix-build
102112
run: ./build.sh
103-
Nixpkgs_GHCJS_Linux:
104-
name: Nixpkgs, GHCJS, Linux
113+
build50:
114+
name: "NixOS-unstable channel, GHC 8.6.5"
115+
runs-on: ubuntu-latest
116+
continue-on-error: true
117+
env:
118+
compiler: "ghc865"
119+
steps:
120+
- name: Git checkout
121+
uses: actions/checkout@v2
122+
- name: Install Nix
123+
uses: cachix/install-nix-action@v10
124+
- name: Determined nix-build
125+
run: ./build.sh
126+
build60:
127+
name: "NixOS-unstable channel, GHC 8.4.4"
105128
runs-on: ubuntu-latest
106129
continue-on-error: true
107130
env:
108-
compiler: "ghcjs"
131+
compiler: "ghc844"
109132
steps:
110133
- name: Git checkout
111134
uses: actions/checkout@v2

0 commit comments

Comments
 (0)