Skip to content

Use debian image

Use debian image #97

Workflow file for this run

name: build
on:
- push
- pull_request
env:
STACK_ENV: CI
jobs:
build:
name: Build, Test & Upload
runs-on: ubuntu-latest
container:
image: debian:bullseye
steps:
- uses: actions/checkout@v2
- id: stack
uses: freckle/stack-action@v4
with:
test: false
- name: Check Formatting
run: make format-check
- name: Test
run: make test
- name: Build
run: make build
- name: Make Artifacts Directory
run: mkdir artifacts
- name: Copy CLI Artifact
run: cp $(stack exec which bridge-cli-exe) ./artifacts
- name: Copy Slack Artifact
run: cp $(stack exec which bridge-slack-exe) ./artifacts
- name: Copy Discord Artifact
run: cp $(stack exec which bridge-discord-exe) ./artifacts
- name: Tar Artifacts
run: tar -cvf artifacts.tar ./artifacts
- uses: actions/upload-artifact@v2
with:
path: artifacts.tar
if: ${{ github.ref == 'refs/heads/main' }}