-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1477 from AmpersandTarski/upgrade-ghc
Upgrade ghc to version 9.6.4
- Loading branch information
Showing
107 changed files
with
3,644 additions
and
3,177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,8 +41,6 @@ jobs: | |
steps: | ||
- name: Checkout project contents 📡 | ||
uses: actions/checkout@v3 | ||
# - name: Use cache when available 📦 | ||
# uses: freckle/stack-cache-action@main | ||
- name: Set up Mariadb 🧰 | ||
uses: shogo82148/actions-setup-mysql@v1 | ||
with: | ||
|
@@ -58,42 +56,40 @@ jobs: | |
steps: | ||
- name: Checkout project contents 📡 | ||
uses: actions/checkout@v3 | ||
# - name: Use cache when available 📦 | ||
# uses: freckle/stack-cache-action@main | ||
- name: Set up Mariadb 🧰 | ||
uses: shogo82148/actions-setup-mysql@v1 | ||
with: | ||
mysql-version: "mariadb-10.6" | ||
# See issue https://github.com/freckle/stack-action/issues/80 for why we need to install stack and php as well | ||
- run: curl -sSL https://get.haskellstack.org/ | sh | ||
- run: brew install php | ||
- name: Build and test 🏗 🧪 | ||
uses: freckle/stack-action@v5 | ||
with: | ||
stack-build-arguments: "--copy-bins --flag ampersand:buildAll" | ||
|
||
build-and-test-windows: | ||
name: Build and test on Windows 🏗 🧪 | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout project contents 📡 | ||
uses: actions/checkout@v3 | ||
# - name: Use cache (manually) 📦 # See https://github.com/freckle/stack-cache-action/issues/5 | ||
# uses: actions/[email protected] | ||
# # TODO: Cache might be done better, see for inspiration: https://github.com/godu/advent-of-code-2020/blob/46796832f59d185457a8edf8de043a54a451d688/.github/workflows/ci.yml | ||
# with: | ||
# path: | | ||
# ~/.ghc | ||
# ~/.stack | ||
# ~/.stack-work | ||
# key: ${{ runner.os }}-stack | ||
- name: Set up Mariadb 🧰 | ||
uses: shogo82148/actions-setup-mysql@v1 | ||
with: | ||
mysql-version: "mariadb-10.6" | ||
- name: Setup PHP 🧰 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.0" | ||
extensions: mysqli | ||
- name: Build and test 🏗 🧪 | ||
uses: freckle/stack-action@v5 | ||
with: | ||
stack-build-arguments: "--copy-bins --flag ampersand:buildAll" | ||
# build-and-test-windows: | ||
# name: Build and test on Windows 🏗 🧪 | ||
# runs-on: windows-latest | ||
# steps: | ||
# - name: Checkout project contents 📡 | ||
# uses: actions/checkout@v3 | ||
# - uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9 # 1.6.0 | ||
# id: expatLibraryZip # Remember to give an ID if you need the output filename | ||
# name: Download the expat library | ||
# with: | ||
# url: "https://github.com/libexpat/libexpat/releases/download/R_2_6_2/expat-win32bin-2.6.2.zip" | ||
# target: public/ | ||
# - name: Set up Mariadb 🧰 | ||
# uses: shogo82148/actions-setup-mysql@v1 | ||
# with: | ||
# mysql-version: "mariadb-10.6" | ||
# - name: Setup PHP 🧰 | ||
# uses: shivammathur/setup-php@v2 | ||
# with: | ||
# php-version: "8.0" | ||
# extensions: mysqli | ||
# - name: Build and test 🏗 🧪 | ||
# uses: freckle/stack-action@v5 | ||
# with: | ||
# stack-build-arguments: "--copy-bins --flag ampersand:buildAll" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,8 @@ jobs: | |
steps: | ||
- name: Checkout project contents 📡 | ||
uses: actions/[email protected] | ||
- name: Use cache when available 📦 | ||
uses: freckle/stack-cache-action@main | ||
- name: Build the project 🌿🌿🌿 | ||
uses: freckle/stack-action@v4 | ||
uses: freckle/stack-action@v5 | ||
with: | ||
test: false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ jobs: | |
add-release-artefacts: | ||
name: Add artefacts to release | ||
needs: [build-and-test-ubuntu, build-and-test-macOS, build-and-test-windows] | ||
needs: [build-without-test-ubuntu, build-without-test-macOS] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifacts (Linux) | ||
|
@@ -98,17 +98,17 @@ jobs: | |
files: release/macOS/ | ||
dest: release/macOS-binaries-v${{ steps.get-version.outputs.version }}.zip | ||
|
||
- name: Download artifacts (Windows) | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: Windows-binaries | ||
path: release/Windows | ||
# - name: Download artifacts (Windows) | ||
# uses: actions/download-artifact@v2 | ||
# with: | ||
# name: Windows-binaries | ||
# path: release/Windows | ||
|
||
- name: zip the binaries (Windows) | ||
uses: papeloto/action-zip@v1 | ||
with: | ||
files: release/Windows/ | ||
dest: release/Windows-binaries-v${{ steps.get-version.outputs.version }}.zip | ||
# - name: zip the binaries (Windows) | ||
# uses: papeloto/action-zip@v1 | ||
# with: | ||
# files: release/Windows/ | ||
# dest: release/Windows-binaries-v${{ steps.get-version.outputs.version }}.zip | ||
|
||
- name: Upload Linux artifact | ||
uses: actions/upload-release-asset@v1 | ||
|
@@ -130,90 +130,94 @@ jobs: | |
asset_path: release/macOS-binaries-v${{ steps.get-version.outputs.version }}.zip | ||
asset_content_type: application/zip | ||
|
||
- name: Upload Windows artifact | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_name: ampersand-${{ steps.get-version.outputs.version }}-Windows-binaries.zip | ||
asset_path: release/Windows-binaries-v${{ steps.get-version.outputs.version }}.zip | ||
asset_content_type: application/zip | ||
|
||
build-and-test-ubuntu: | ||
name: Build and test on ubuntu-latest 🏗 🧪 | ||
# - name: Upload Windows artifact | ||
# uses: actions/upload-release-asset@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ github.token }} | ||
# with: | ||
# upload_url: ${{ github.event.release.upload_url }} | ||
# asset_name: ampersand-${{ steps.get-version.outputs.version }}-Windows-binaries.zip | ||
# asset_path: release/Windows-binaries-v${{ steps.get-version.outputs.version }}.zip | ||
# asset_content_type: application/zip | ||
|
||
build-without-test-ubuntu: | ||
name: Build without test on ubuntu-latest 🏗 🧪 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout project contents 📡 | ||
uses: actions/checkout@v3 | ||
# - name: Use cache when available 📦 | ||
# uses: freckle/stack-cache-action@main | ||
- name: Set up Mariadb 🧰 | ||
uses: shogo82148/actions-setup-mysql@v1 | ||
with: | ||
mysql-version: "mariadb-10.6" | ||
- name: Build and test 🏗 🧪 | ||
- name: build without test 🏗 🧪 | ||
uses: freckle/stack-action@v5 # stack-action does all these steps: dependencies, build, test. | ||
with: | ||
stack-build-arguments: "--copy-bins --flag ampersand:buildAll" | ||
upgrade-stack: false | ||
test: false | ||
- name: Upload artifacts (Linux) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Linux-binaries | ||
path: /home/runner/.local/bin/* | ||
|
||
build-and-test-macOS: | ||
name: Build and test on macOS 🏗 🧪 | ||
build-without-test-macOS: | ||
name: Build without test on macOS 🏗 🧪 | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout project contents 📡 | ||
uses: actions/checkout@v3 | ||
# - name: Use cache when available 📦 | ||
# uses: freckle/stack-cache-action@main | ||
- name: Set up Mariadb 🧰 | ||
uses: shogo82148/actions-setup-mysql@v1 | ||
with: | ||
mysql-version: "mariadb-10.6" | ||
- name: Build and test 🏗 🧪 | ||
# See issue https://github.com/freckle/stack-action/issues/80 for why we need to install stack and php as well | ||
- run: curl -sSL https://get.haskellstack.org/ | sh | ||
- run: brew install php | ||
- name: Build without test 🏗 🧪 | ||
uses: freckle/stack-action@v5 | ||
with: | ||
stack-build-arguments: "--copy-bins --flag ampersand:buildAll --verbose" | ||
stack-build-arguments: "--copy-bins --flag ampersand:buildAll" | ||
upgrade-stack: false | ||
test: false | ||
- name: Upload artifacts (macOS) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: macOS-binaries | ||
path: /Users/runner/.local/bin/* | ||
|
||
build-and-test-windows: | ||
name: Build and test on Windows 🏗 🧪 | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout project contents 📡 | ||
uses: actions/checkout@v3 | ||
# - name: Use cache (manually) 📦 # See https://github.com/freckle/stack-cache-action/issues/5 | ||
# uses: actions/[email protected] | ||
# # TODO: Cache might be done better, see for inspiration: https://github.com/godu/advent-of-code-2020/blob/46796832f59d185457a8edf8de043a54a451d688/.github/workflows/ci.yml | ||
# with: | ||
# path: | | ||
# ~/.ghc | ||
# ~/.stack | ||
# ~/.stack-work | ||
# key: ${{ runner.os }}-stack | ||
- name: Set up Mariadb 🧰 | ||
uses: shogo82148/actions-setup-mysql@v1 | ||
with: | ||
mysql-version: "mariadb-10.6" | ||
- name: Setup PHP 🧰 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.0" | ||
extensions: mysqli | ||
- name: Build and test 🏗 🧪 | ||
uses: freckle/stack-action@v5 | ||
with: | ||
stack-build-arguments: "--copy-bins --flag ampersand:buildAll" | ||
- name: Upload artifacts (Windows) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Windows-binaries | ||
path: C:\Users\runneradmin\AppData\Roaming\local\bin\* | ||
# build-without-test-windows: | ||
# name: build without test on Windows 🏗 🧪 | ||
# runs-on: windows-latest | ||
# steps: | ||
# - name: Checkout project contents 📡 | ||
# uses: actions/checkout@v3 | ||
# # - name: Use cache (manually) 📦 # See https://github.com/freckle/stack-cache-action/issues/5 | ||
# # uses: actions/[email protected] | ||
# # # TODO: Cache might be done better, see for inspiration: https://github.com/godu/advent-of-code-2020/blob/46796832f59d185457a8edf8de043a54a451d688/.github/workflows/ci.yml | ||
# # with: | ||
# # path: | | ||
# # ~/.ghc | ||
# # ~/.stack | ||
# # ~/.stack-work | ||
# # key: ${{ runner.os }}-stack | ||
# - name: Set up Mariadb 🧰 | ||
# uses: shogo82148/actions-setup-mysql@v1 | ||
# with: | ||
# mysql-version: "mariadb-10.6" | ||
# - name: Setup PHP 🧰 | ||
# uses: shivammathur/setup-php@v2 | ||
# with: | ||
# php-version: "8.0" | ||
# extensions: mysqli | ||
# - name: build without test 🏗 🧪 | ||
# uses: freckle/stack-action@v5 | ||
# with: | ||
# stack-build-arguments: "--copy-bins --flag ampersand:buildAll" | ||
# test: false | ||
# - name: Upload artifacts (Windows) | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: Windows-binaries | ||
# path: C:\Users\runneradmin\AppData\Roaming\local\bin\* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.