Skip to content

Refactor Hadrian setup steps to ensure consistent shell usage and rem… #61

Refactor Hadrian setup steps to ensure consistent shell usage and rem…

Refactor Hadrian setup steps to ensure consistent shell usage and rem… #61

Workflow file for this run

name: Test Hadrian GHC-in-GHCi
on: push
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
jobs:
# pre-cleanup:
# runs-on: ubuntu-latest
# steps:
# - name: CheckSpace
# shell: bash
# run: df -h
# - name: Checkout
# uses: actions/checkout@v4
# - name: Free Disk Space (Ubuntu)
# uses: jlumbroso/free-disk-space@main
# with:
# # this might remove tools that are actually needed,
# # if set to "true" but frees about 6 GB
# tool-cache: false
# # all of these default to true, but feel free to set to
# # "false" if necessary for your workflow
# android: true
# dotnet: true
# haskell: false
# large-packages: true
# docker-images: false
# swap-storage: true
hadrian-build-build:
runs-on: ubuntu-latest
permissions:
id-token: "write"
contents: "read"
# needs: [pre-cleanup]
strategy:
fail-fast: true
matrix:
# You can add multiple configurations here if needed
config: [default]
# container:
# # image: soulomoon/ghc-build-env:latest
# # image: registry.gitlab.haskell.org/ghc/ci-images/aarch64-linux-deb12:latest
# image: soulomoon/ci-images-x86_64-linux-deb12:latest
# options: --user root
env:
# GHC_FLAGS: -Werror
# BIGNUM_BACKEND: gmp
BIN_DIST_NAME: ghc-aarch64-linux-deb10-validate
BUILD_FLAVOUR: validate
# CONFIGURE_ARGS: --enable-strict-ghc-toolchain-check
# INSTALL_CONFIGURE_ARGS: --enable-strict-ghc-toolchain-check
TEST_ENV: aarch64-linux-deb10-validate
defaults:
run:
shell: bash
steps:
- uses: wimpysworld/nothing-but-nix@main
with:
hatchet-protocol: 'cleave'
witness-carnage: false # Default: false
root-safe-haven: '54000'
- uses: DeterminateSystems/nix-installer-action@main
# - uses: DeterminateSystems/magic-nix-cache-action@main
# - uses: DeterminateSystems/flake-checker-action@main
- name: Checkout
uses: actions/checkout@v4
- name: setup git
run: |
git config user.email "[email protected]"
git config user.name "GHC GitLab CI"
- uses: nicknovitski/nix-develop@main
with:
arguments: "git+https://github.com/soulomoon/ghc.nix#llvm --accept-flake-config"
- name: Hadrian setup
shell: bash
run: |
. .gitlab/ci.sh setup
- name: Hadrian configure
shell: bash
run: . .gitlab/ci.sh configure
- name: CheckSpace
shell: bash
shell: bash

Check failure on line 98 in .github/workflows/Test.yml

View workflow run for this annotation

GitHub Actions / Test Hadrian GHC-in-GHCi

Invalid workflow file

The workflow is not valid. .github/workflows/Test.yml (Line: 98, Col: 9): 'shell' is already defined
run: df -h
- name: Hadrian build
shell: bash
run: . .gitlab/ci.sh build_hadrian
- name: Hadrian test
shell: bash
run: . .gitlab/ci.sh test_hadrian
- name: Upload config.log
if: always()
uses: actions/upload-artifact@v4
with:
name: config-log
path: _build/stage0/libraries/time/build/config.log