-
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.
- Loading branch information
hanjoosten
committed
Feb 22, 2024
1 parent
3bd1708
commit 74ea1e1
Showing
2 changed files
with
38 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,49 +41,49 @@ jobs: | |
steps: | ||
- name: Checkout project contents 📡 | ||
uses: actions/checkout@v3 | ||
- name: Use cache when available 📦 | ||
uses: freckle/stack-cache-action@main | ||
# - 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 🏗 🧪 | ||
uses: freckle/stack-action@v4 # stack-action does all these steps: dependencies, build, test. | ||
uses: freckle/stack-action@v5 # stack-action does all these steps: dependencies, build, test. | ||
with: | ||
stack-arguments: "--copy-bins --flag ampersand:buildAll" | ||
stack-build-arguments: "--copy-bins --flag ampersand:buildAll" | ||
|
||
build-and-test-macOS: | ||
name: Build and 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: 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 🏗 🧪 | ||
uses: freckle/stack-action@v4 | ||
uses: freckle/stack-action@v5 | ||
with: | ||
stack-arguments: "--copy-bins --flag ampersand:buildAll" | ||
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: 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: | ||
|
@@ -94,6 +94,6 @@ jobs: | |
php-version: "8.0" | ||
extensions: mysqli | ||
- name: Build and test 🏗 🧪 | ||
uses: freckle/stack-action@v4 | ||
uses: freckle/stack-action@v5 | ||
with: | ||
stack-arguments: "--copy-bins --flag ampersand:buildAll" | ||
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 |
---|---|---|
|
@@ -146,16 +146,16 @@ jobs: | |
steps: | ||
- name: Checkout project contents 📡 | ||
uses: actions/checkout@v3 | ||
- name: Use cache when available 📦 | ||
uses: freckle/stack-cache-action@main | ||
# - 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 🏗 🧪 | ||
uses: freckle/stack-action@v4 # stack-action does all these steps: dependencies, build, test. | ||
uses: freckle/stack-action@v5 # stack-action does all these steps: dependencies, build, test. | ||
with: | ||
stack-arguments: "--copy-bins --flag ampersand:buildAll" | ||
stack-build-arguments: "--copy-bins --flag ampersand:buildAll" | ||
- name: Upload artifacts (Linux) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -168,16 +168,16 @@ jobs: | |
steps: | ||
- name: Checkout project contents 📡 | ||
uses: actions/checkout@v3 | ||
- name: Use cache when available 📦 | ||
uses: freckle/stack-cache-action@main | ||
# - 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 🏗 🧪 | ||
uses: freckle/stack-action@v4 | ||
uses: freckle/stack-action@v5 | ||
with: | ||
stack-arguments: "--copy-bins --flag ampersand:buildAll --verbose" | ||
stack-build-arguments: "--copy-bins --flag ampersand:buildAll --verbose" | ||
- name: Upload artifacts (macOS) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -190,15 +190,15 @@ jobs: | |
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: 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: | ||
|
@@ -209,9 +209,9 @@ jobs: | |
php-version: "8.0" | ||
extensions: mysqli | ||
- name: Build and test 🏗 🧪 | ||
uses: freckle/stack-action@v4 | ||
uses: freckle/stack-action@v5 | ||
with: | ||
stack-arguments: "--copy-bins --flag ampersand:buildAll" | ||
stack-build-arguments: "--copy-bins --flag ampersand:buildAll" | ||
- name: Upload artifacts (Windows) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|