Skip to content

Commit

Permalink
upgrade to freckle/stack-action@v5
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjoosten committed Feb 22, 2024
1 parent 3bd1708 commit 74ea1e1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
38 changes: 19 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 74ea1e1

Please sign in to comment.