Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joedaws committed Jan 27, 2024
1 parent 5694116 commit 81fe87c
Showing 1 changed file with 11 additions and 32 deletions.
43 changes: 11 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Haskell CI
name: atool CI

on:
push:
Expand All @@ -10,36 +10,15 @@ permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

runhaskell:
name: build atool linux
runs-on: ubuntu-latest # or macOS-latest, or windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Haskell
uses: actions/setup-haskell@v1
with:
ghc-version: '9.4.8'
cabal-version: '3.10.2.1'
stack-version: '2.13.1'

- name: Build with Stack
run: stack build --ghc-options="-static -optl-static -optl-pthread"

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload executable
uses: actions/upload-artifact@v2
- uses: actions/checkout@v3
- uses: haskell-actions/setup@v2
with:
name: atool
path: $(stack path --local-bin)/atool
ghc-version: '9.4.8' # Exact version of ghc to use
cabal-version: '3.10.2.1'
enable-stack: true
stack-version: 'latest'
- run: stack build --ghc-options="-static -optl-static -optl-pthread"

0 comments on commit 81fe87c

Please sign in to comment.