Skip to content

Commit

Permalink
Use new stack action
Browse files Browse the repository at this point in the history
  • Loading branch information
drewolson committed Jul 6, 2023
1 parent d8f69e2 commit 69f4d09
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,26 @@ jobs:
build:
name: Build, Test & Upload
runs-on: ubuntu-latest
container:
image: haskell:9.4-buster
options: --user root
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
- id: stack
uses: freckle/stack-action@v4
with:
path: |
~/.stack
.stack-work
*/.stack-work
key: ${{ runner.os }}
- name: Permissions bug workaround
run: "chown -R $(id -un):$(id -gn) ~"
- name: Build
run: make build
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
run: cp ${{ steps.stack.outputs.local-bin-path }}/bridge-cli-exe ./artifacts
- name: Copy Slack Artifact
run: cp $(stack exec which bridge-slack-exe) ./artifacts
run: cp ${{ steps.stack.outputs.local-bin-path }}/bridge-slack-exe ./artifacts
- name: Copy Discord Artifact
run: cp $(stack exec which bridge-discord-exe) ./artifacts
run: cp ${{ steps.stack.outputs.local-bin-path }}/bridge-discord-exe ./artifacts
- name: Tar Artifacts
run: tar -cvf artifacts.tar ./artifacts
- uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 69f4d09

Please sign in to comment.