Skip to content

Andreas make-build changes #1

Andreas make-build changes

Andreas make-build changes #1

Workflow file for this run

name: CI (with nix)
# Trigger the workflow on push or pull request, but only for the master branch
on:
pull_request:
types:
- opened
- synchronize
push:
branches: [master]
defaults:
run:
shell: devx {0}
jobs:
cabal:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest,macos-latest]
ghc: [ghc984] # bootstrapping compiler
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Build
uses: input-output-hk/actions/devx@latest
with:
platform: ${{ matrix.platform == 'ubuntu-latest' && 'x86_64-linux' || 'aarch64-darwin' }}
compiler-nix-name: 'ghc8107'
minimal: true
ghc: true
- run: cabal update
# - name: Restore build artifacts
# uses: actions/cache/restore@v4
# with:
# key: ${{ matrix.os }}-${{ matrix.ghc }}-${{ github.run_id }}
# restore-keys: ${{ matrix.os }}-${{ matrix.ghc }}-
# path: |
# ${{ steps.cabal-paths.outputs.store }}
# libraries/Cabal/dist-newstyle
# _build
- # This runs autoconf also in the subdirectories
run: autoreconf -v
- name: Build the bindist
run: make
# - name: Upload artifacts
# uses: actions/upload-artifact@v4
# with:
# name: bindist
# path: _build/bindist
# - name: Run the testsuite
# run: make test
# - name: Upload test results
# uses: actions/upload-artifact@v4
# if: ${{ !cancelled() }} # upload test results even if the testsuite failed to pass
# with:
# name: testsuite-results
# path: |
# _build/test-perf.csv
# _build/test-summary.txt
# _build/test-junit.xml
# - name: Save GHCup cache
# uses: actions/cache/save@v4
# if: always()
# with:
# key: ghcup-${{ github.run_id }}
# path: ${{ steps.ghcup.outputs.cachedir }}
# - name: Save Hackage index
# uses: actions/cache/save@v4
# if: always()
# with:
# key: hackage-${{ github.run_id }}
# path: ${{ steps.cabal-paths.outputs.remote-repo-cache }}
# - name: Save build artifacts
# if: always()
# uses: actions/cache/save@v4
# with:
# key: ${{ matrix.os }}-${{ matrix.ghc }}-${{ github.run_id }}
# path: |
# ${{ steps.cabal-paths.outputs.store }}
# libraries/Cabal/dist-newstyle
# _build