From dcf678ac01a4e425fa43716f9536ffa7b1c01104 Mon Sep 17 00:00:00 2001 From: andys8 Date: Sun, 10 Sep 2023 13:46:41 +0200 Subject: [PATCH] CI: Ubuntu 20.04 to support static linking --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c45fd08..4f54fb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: build: strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-20.04] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa2b2dc..723de6b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: jobs: create_release: name: Create Github Release - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Check out code uses: actions/checkout@v3 @@ -35,11 +35,11 @@ jobs: name: Build Artifact strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-20.04, macos-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - - if: matrix.os == 'ubuntu-latest' + - if: matrix.os == 'ubuntu-20.04' uses: actions/cache@v3 name: Cache ~/.stack with: @@ -53,7 +53,7 @@ jobs: ghc-version: "9.4.6" enable-stack: true stack-version: "latest" - - if: matrix.os == 'ubuntu-latest' + - if: matrix.os == 'ubuntu-20.04' name: Build binary (linux/static) run: stack install --local-bin-path dist --flag git-brunch:static - if: matrix.os == 'macos-latest'