Skip to content

Commit 684c02e

Browse files
committed
Replace workflow.
1 parent 844509e commit 684c02e

19 files changed

+62
-995
lines changed

.github/workflows/actionlint-exceptions.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/actionlint.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/cabal.project.local.ci

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/check-cabal-files.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/check-git-dependencies.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/check-hlint.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/check-mainnet-config.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Build
2+
3+
env:
4+
NIX_SHELL: "github:CardanoSolutions/devx#ghc94-static-minimal-iog"
5+
NIX_OPTS: "--no-write-lock-file --refresh"
6+
7+
on:
8+
push:
9+
branches: [ "master", "v*.*.*" ]
10+
11+
jobs:
12+
continuous_integration:
13+
strategy:
14+
matrix:
15+
os: [ linux, macos ]
16+
arch: [ x86_64, aarch64 ]
17+
compiler: [ ghc948 ]
18+
exclude:
19+
- os: linux
20+
arch: aarch64
21+
- os: macos
22+
arch: x86_64
23+
24+
runs-on: ${{ (matrix.os == 'linux' && 'ubuntu-latest') || 'macos-latest' }}
25+
26+
steps:
27+
28+
- name: Checkout repository
29+
uses: actions/checkout@v3
30+
31+
- name: Install Nix
32+
uses: cachix/install-nix-action@v22
33+
with:
34+
extra_nix_config: |
35+
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk=
36+
substituters = https://cache.zw3rk.com/ https://cache.nixos.org/
37+
nix_path: nixpkgs=channel:nixos-unstable
38+
39+
- name: Prepare Cache
40+
shell: bash
41+
run: |
42+
if [ "$OS" == "macos" ]; then
43+
nix develop $NIX_SHELL $NIX_OPTS --command bash -c "cat /nix/store/l0np941gvmpqcgxankbgb7zpl4mj332v-cabal.project.local >> cabal.project.local"
44+
else
45+
nix develop $NIX_SHELL $NIX_OPTS --command bash -c "cat /nix/store/vd865r55pdbndjwh994h90m35qq77x44-cabal.project.local >> cabal.project.local"
46+
fi
47+
nix develop $NIX_SHELL $NIX_OPTS --command bash -c "cabal update && cabal freeze"
48+
49+
- name: Cache
50+
uses: actions/cache@v3
51+
with:
52+
path: |
53+
~/.cabal-static/packages
54+
~/.cabal-static/store
55+
key: cabal-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.compiler }}-${{ hashFiles('cabal.project.freeze') }}
56+
restore-keys: |
57+
cabal-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.compiler }}
58+
59+
- name: Build
60+
shell: bash
61+
run: |
62+
nix develop $NIX_SHELL $NIX_OPTS --command bash -c "cabal build cardano-node:exe:cardano-node"

.github/workflows/github-page.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)