Skip to content

bump version to 5.1.1 #1268

bump version to 5.1.1

bump version to 5.1.1 #1268

Workflow file for this run

# Inspired by https://tech.freckle.com/2021/05/18/haskell-on-actions/
name: Build and test 🚀
on:
push:
branches:
- "**" # Only trigger on branches (i.e. not tags, ..)
paths-ignore:
- "docs/**" # If only documentation changes, no need to build.
jobs:
build-and-test-docker:
name: Build with Docker
runs-on: ubuntu-latest
env:
DOCKER_AMPERSAND_IMAGE: ampersandtarski/ampersand
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Prepare for docker
run: |
echo Running on branch ${GITHUB_REF##*/}
docker version
- name: Build final image
run: docker build . --tag ${DOCKER_AMPERSAND_IMAGE}:latest --build-arg GIT_SHA=${{ github.sha }} --build-arg GIT_Branch=${{ github.ref }}
# For main branch push latest to DockerHub
- name: Login to DockerHub
if: github.ref == 'refs/heads/main'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Push latest
if: github.ref == 'refs/heads/main'
run: docker push ${DOCKER_AMPERSAND_IMAGE}:latest
build-and-test-ubuntu:
name: Build and test on ubuntu-latest 🏗 🧪
runs-on: ubuntu-latest
steps:
- name: Checkout project contents 📡
uses: actions/checkout@v3
- name: Set up Mariadb 🧰
uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: "mariadb-10.6"
- name: Build and 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
cache-save-always: true
build-and-test-macOS:
name: Build and test on macOS 🏗 🧪
runs-on: macos-latest
steps:
- name: Checkout project contents 📡
uses: actions/checkout@v3
- 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
# - 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"