Skip to content

Commit

Permalink
Merge branch 'master' into support-external-ormolu
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpj authored Sep 12, 2023
2 parents 3d08ccf + f557e6c commit 8b62a39
Show file tree
Hide file tree
Showing 30 changed files with 402 additions and 434 deletions.
8 changes: 0 additions & 8 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ build_task:
GITHUB_WORKSPACE: ${CIRRUS_WORKING_DIR}
CABAL_CACHE_NONFATAL: "yes"
matrix:
- name: build-ghc-8.10.7
env:
GHC_VERSION: 8.10.7
- name: build-ghc-9.0.2
env:
GHC_VERSION: 9.0.2
Expand All @@ -46,7 +43,6 @@ build_task:
bindist_task:
name: bindist
depends_on:
- build-ghc-8.10.7
- build-ghc-9.0.2
- build-ghc-9.2.5
- build-ghc-9.2.7
Expand All @@ -64,10 +60,6 @@ bindist_task:
- tzsetup Etc/GMT
- adjkerntz -a

- curl -o binaries-8.10.7.tar.xz -L https://api.cirrus-ci.com/v1/artifact/build/${CIRRUS_BUILD_ID}/build-ghc-8.10.7/binaries/out.tar.xz
- tar xvf binaries-8.10.7.tar.xz
- rm -f binaries-8.10.7.tar.xz

- curl -o binaries-9.0.2.tar.xz -L https://api.cirrus-ci.com/v1/artifact/build/${CIRRUS_BUILD_ID}/build-ghc-9.0.2/binaries/out.tar.xz
- tar xvf binaries-9.0.2.tar.xz
- rm -f binaries-9.0.2.tar.xz
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
# change of the strategy may require changing the bootstrapping/run code

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:

# By default, the `pull_request` event has a `GITHUB_SHA` env variable
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/caching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
# Need the repo checked out in order to read the file
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: ghcs
run: echo "ghcs=$(cat ./.github/workflows/supported-ghc-versions.json)" >> $GITHUB_OUTPUT
- id: skip_check
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
- macOS-latest
- windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./.github/actions/setup-build
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
# Need the repo checked out in order to read the file
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: ghcs
run: echo "ghcs=$(cat ./.github/workflows/supported-ghc-versions.json)" >> $GITHUB_OUTPUT
- id: skip_check
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
- ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:

# By default, the `pull_request` event has a `GITHUB_SHA` env variable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: "Hlint check run"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: 'Installing'
uses: rwe/actions-hlint-setup@v1
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
os: [ubuntu-latest, macOS-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v22
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
experimental-features = nix-command flakes
Expand Down Expand Up @@ -85,9 +85,9 @@ jobs:
os: [ubuntu-latest, macOS-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v22
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
experimental-features = nix-command flakes
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
git-diff: ${{ steps.git-diff.outputs.diff }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Find changed files
uses: technote-space/get-diff-action@v6.1.2
id: git-diff
Expand All @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
needs: file-diff
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build
with:
# select a stable GHC version
Expand Down
84 changes: 23 additions & 61 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ["9.6.2", "9.4.7", "9.4.6", "9.4.5", "9.2.8", "9.0.2", "8.10.7"]
ghc: ["9.6.2", "9.4.7", "9.2.8", "9.0.2"]
platform: [ { image: "debian:9"
, installCmd: "sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list && sed -i 's|security.debian.org|archive.debian.org/|g' /etc/apt/sources.list && sed -i /-updates/d /etc/apt/sources.list && apt-get update && apt-get install -y"
, toolRequirements: "libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
Expand Down Expand Up @@ -118,15 +118,6 @@ jobs:
# Perhaps we can migrate *all* unknown linux builds to a uniform
# image.
include:
- ghc: 8.10.7
platform:
{ image: "rockylinux:8"
, installCmd: "yum -y install epel-release && yum install -y --allowerasing"
, toolRequirements: "autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
, DISTRO: "Unknown"
, ARTIFACT: "x86_64-linux-unknown"
, ADD_CABAL_ARGS: "--enable-split-sections"
}
- ghc: 9.0.2
platform:
{ image: "rockylinux:8"
Expand All @@ -145,24 +136,6 @@ jobs:
, ARTIFACT: "x86_64-linux-unknown"
, ADD_CABAL_ARGS: "--enable-split-sections"
}
- ghc: 9.4.5
platform:
{ image: "fedora:27"
, installCmd: "dnf install -y"
, toolRequirements: "autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
, DISTRO: "Unknown"
, ARTIFACT: "x86_64-linux-unknown"
, ADD_CABAL_ARGS: "--enable-split-sections"
}
- ghc: 9.4.6
platform:
{ image: "fedora:27"
, installCmd: "dnf install -y"
, toolRequirements: "autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
, DISTRO: "Unknown"
, ARTIFACT: "x86_64-linux-unknown"
, ADD_CABAL_ARGS: "--enable-split-sections"
}
- ghc: 9.4.7
platform:
{ image: "fedora:27"
Expand Down Expand Up @@ -195,7 +168,7 @@ jobs:
echo "ID=linux" >> /etc/os-release
echo "PRETTY_NAME=Linux" >> /etc/os-release
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Run build
run: |
Expand Down Expand Up @@ -240,7 +213,7 @@ jobs:
strategy:
fail-fast: true
matrix:
ghc: ["9.6.2", "9.4.7", "9.4.6", "9.4.5", "9.2.8", "9.0.2", "8.10.7"]
ghc: ["9.6.2", "9.4.7", "9.2.8", "9.0.2"]
steps:
- uses: docker://arm64v8/ubuntu:focal
name: Cleanup (aarch64 linux)
Expand All @@ -253,7 +226,7 @@ jobs:
shell: bash

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: docker://hasufell/arm64v8-ubuntu-haskell:focal
name: Run build (aarch64 linux)
Expand Down Expand Up @@ -300,10 +273,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ["9.6.2", "9.4.7", "9.4.6", "9.4.5", "9.2.8", "9.0.2", "8.10.7"]
ghc: ["9.6.2", "9.4.7", "9.2.8", "9.0.2"]
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run build
run: |
Expand Down Expand Up @@ -345,26 +318,15 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ["9.6.2", "9.4.7", "9.4.6", "9.4.5", "9.2.8", "8.10.7"]
ghc: ["9.6.2", "9.4.7", "9.2.8"]
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run build
run: |
if test "${GHC_VERSION}" = "8.10.7"; then
bash .github/scripts/brew.sh git coreutils llvm@11 autoconf automake tree
export PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$HOME/.brew/opt/llvm@11/bin:$PATH"
export CC="$HOME/.brew/opt/llvm@11/bin/clang"
export CXX="$HOME/.brew/opt/llvm@11/bin/clang++"
export AR="$HOME/.brew/opt/llvm@11/bin/llvm-ar"
export LLC="$HOME/.brew/opt/llvm@11/bin/llc"
export OPT="$HOME/.brew/opt/llvm@11/bin/opt"
export RANLIB="$HOME/.brew/opt/llvm@11/bin/llvm-ranlib"
else
bash .github/scripts/brew.sh git coreutils autoconf automake tree
export PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$PATH"
fi
bash .github/scripts/brew.sh git coreutils autoconf automake tree
export PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$PATH"
export LD=ld
bash .github/scripts/build.sh
tar cf out-${ARTIFACT}-${GHC_VERSION}.tar out/ store/
Expand Down Expand Up @@ -401,7 +363,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ["9.6.2", "9.4.7", "9.4.6", "9.4.5", "9.2.8", "9.0.2", "8.10.7"]
ghc: ["9.6.2", "9.4.7", "9.2.8", "9.0.2"]
steps:
- name: install windows deps
shell: pwsh
Expand All @@ -412,7 +374,7 @@ jobs:
taskkill /F /FI "MODULES eq msys-2.0.dll"
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run build (windows)
run: |
Expand Down Expand Up @@ -521,7 +483,7 @@ jobs:
echo "ID=linux" >> /etc/os-release
echo "PRETTY_NAME=Linux" >> /etc/os-release
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -573,7 +535,7 @@ jobs:
git config --global --get-all safe.directory | grep '^\*$' || git config --global --add safe.directory "*"
shell: bash

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -612,7 +574,7 @@ jobs:
ARCH: 64
ARTIFACT: "x86_64-apple-darwin"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -650,7 +612,7 @@ jobs:
ARCH: ARM64
ARTIFACT: "aarch64-apple-darwin"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -702,7 +664,7 @@ jobs:
C:\msys64\usr\bin\bash -lc "pacman --disable-download-timeout --noconfirm -S unzip zip git"
taskkill /F /FI "MODULES eq msys-2.0.dll"
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -816,7 +778,7 @@ jobs:
echo "ID=linux" >> /etc/os-release
echo "PRETTY_NAME=Linux" >> /etc/os-release
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -852,7 +814,7 @@ jobs:
shell: bash

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand All @@ -876,7 +838,7 @@ jobs:
DISTRO: na
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand All @@ -901,7 +863,7 @@ jobs:
HOMEBREW_CHANGE_ARCH_TO_ARM: 1
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -940,7 +902,7 @@ jobs:
taskkill /F /FI "MODULES eq msys-2.0.dll"
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand All @@ -961,7 +923,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
ghcs: ${{ steps.ghcs.outputs.ghcs }}
steps:
# Need the repo checked out in order to read the file
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: ghcs
run: echo "ghcs=$(cat ./.github/workflows/supported-ghc-versions.json)" >> $GITHUB_OUTPUT
- id: skip_check
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
test: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./.github/actions/setup-build
with:
Expand Down
Loading

0 comments on commit 8b62a39

Please sign in to comment.