Skip to content

Commit

Permalink
Replace workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Jul 23, 2024
1 parent 844509e commit 5fc65f3
Show file tree
Hide file tree
Showing 19 changed files with 62 additions and 995 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/actionlint-exceptions.txt

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/actionlint.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/cabal.project.local.ci

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/check-cabal-files.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/check-git-dependencies.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/check-hlint.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/check-mainnet-config.yml

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build

env:
NIX_SHELL="github:CardanoSolutions/devx#ghc94-static-minimal-iog"
NIX_OPTS="--no-write-lock-file --refresh"

on:
push:
branches: [ "master", "v*.*.*" ]

jobs:
continuous_integration:
strategy:
matrix:
os: [ linux, macos ]
arch: [ x86_64, aarch64 ]
compiler: [ ghc948 ]
exclude:
- os: linux
arch: aarch64
- os: macos
arch: x86_64

runs-on: ${{ (matrix.os == 'linux' && 'ubuntu-latest') || 'macos-latest') }}

steps:

- name: Checkout repository
uses: actions/checkout@v3

- name: Install Nix
uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk=
substituters = https://cache.zw3rk.com/ https://cache.nixos.org/
nix_path: nixpkgs=channel:nixos-unstable

- name: Prepare Cache
shell: bash
run: |
if [ "$OS" == "macos" ]; then
nix develop $NIX_SHELL $NIX_OPTS --command bash -c "cat /nix/store/l0np941gvmpqcgxankbgb7zpl4mj332v-cabal.project.local >> cabal.project.local"
else
nix develop $NIX_SHELL $NIX_OPTS --command bash -c "cat /nix/store/vd865r55pdbndjwh994h90m35qq77x44-cabal.project.local >> cabal.project.local"
fi
nix develop $NIX_SHELL $NIX_OPTS --command bash -c "cabal update && cabal freeze"

- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cabal-static/packages
~/.cabal-static/store
key: cabal-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.compiler }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
cabal-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.compiler }}

- name: Build
shell: bash
run: |
nix develop $NIX_SHELL $NIX_OPTS --command bash -c "cabal build kupo:exe:kupo"
66 changes: 0 additions & 66 deletions .github/workflows/github-page.yml

This file was deleted.

Loading

0 comments on commit 5fc65f3

Please sign in to comment.