Skip to content

Commit 8c43420

Browse files
Merge pull request haskell-nix#6 from Anton-Latukha/2020-07-06-workflow-add-Nixpkgs-macOS
Workflow: add Nixpkgs-macOS
2 parents a44a6f8 + 920e8c9 commit 8c43420

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

.github/workflows/Nixpkgs-macOS.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Nixpkgs, macOS"
2+
# Due to macOS is a side-build to test the platform, using nixos-unstable for additional long-term stability of it
3+
on:
4+
# On Git changes in PR
5+
pull_request:
6+
# On Git changes of the master
7+
push:
8+
branches:
9+
- master
10+
schedule:
11+
# Every day at 04:45
12+
- cron: "45 01 * * *"
13+
jobs:
14+
Nixpkgs_unstable_macOS:
15+
name: NixOS-unstable, default GHC (8.8)
16+
runs-on: macos-latest
17+
continue-on-error: true
18+
env:
19+
useRev: "true"
20+
rev: "nixos-unstable"
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/main.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ jobs:
6464
uses: actions/checkout@v2
6565
- name: Install Nix
6666
uses: cachix/install-nix-action@v10
67-
with:
68-
nix_path: nixpkgs=channel:nixpkgs-unstable
6967
- name: Determined nix-build
7068
run: ./build.sh
7169
Nixpkgs_stable_Linux:
@@ -79,8 +77,6 @@ jobs:
7977
uses: actions/checkout@v2
8078
- name: Install Nix
8179
uses: cachix/install-nix-action@v10
82-
with:
83-
nix_path: nixpkgs=channel:nixpkgs-unstable
8480
- name: Determined nix-build
8581
run: ./build.sh
8682
Nixpkgs_SDist_Optimize_Benchmark_Haddock_GHC-8-10_Linux:
@@ -102,8 +98,6 @@ jobs:
10298
uses: actions/checkout@v2
10399
- name: Install Nix
104100
uses: cachix/install-nix-action@v10
105-
with:
106-
nix_path: nixpkgs=channel:nixpkgs-unstable
107101
- name: Determined nix-build
108102
run: ./build.sh
109103
Nixpkgs_GHCJS_Linux:
@@ -117,22 +111,5 @@ jobs:
117111
uses: actions/checkout@v2
118112
- name: Install Nix
119113
uses: cachix/install-nix-action@v10
120-
with:
121-
nix_path: nixpkgs=channel:nixpkgs-unstable
122-
- name: Determined nix-build
123-
run: ./build.sh
124-
Nixpkgs_unstable_macOS:
125-
name: Nixpkgs, unstable, default (GHC 8.8), macOS
126-
runs-on: macos-latest
127-
continue-on-error: true
128-
env:
129-
rev: "nixpkgs-unstable"
130-
steps:
131-
- name: Git checkout
132-
uses: actions/checkout@v2
133-
- name: Install Nix
134-
uses: cachix/install-nix-action@v10
135-
with:
136-
nix_path: nixpkgs=channel:nixpkgs-unstable
137114
- name: Determined nix-build
138115
run: ./build.sh

0 commit comments

Comments
 (0)