@@ -10,16 +10,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
STACK_YAML: ${{ gitea.workspace }}/stack.yaml
|
||||
tarball: license-tool-hs-${{ gitea.head_ref }}.${{ gitea.sha }}.tar.gz
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v6
|
||||
- name: Install Stack
|
||||
uses: haskell-actions/setup@v2.11.0
|
||||
with:
|
||||
enable-stack: true
|
||||
stack-no-global: true
|
||||
stack-setup-ghc: false
|
||||
- name: Cache GHC
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -27,6 +20,12 @@ jobs:
|
||||
~/.stack
|
||||
${{ gitea.workspace }}/.stack-work
|
||||
key: ${{ runner.os }}-${{ hashFiles('stack.yaml') }}
|
||||
- name: Install Stack
|
||||
uses: haskell-actions/setup@v2.11.0
|
||||
with:
|
||||
enable-stack: true
|
||||
stack-no-global: true
|
||||
stack-setup-ghc: false
|
||||
- name: Install GHC
|
||||
run: stack setup
|
||||
- name: Build with Stack
|
||||
@@ -41,6 +40,7 @@ jobs:
|
||||
- name: Upload Artifacts
|
||||
uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
||||
with:
|
||||
path: ${{ env.tarball }}
|
||||
path: usr/
|
||||
name: license-tool-hs-${{ gitea.head_ref }}.${{ gitea.sha }}
|
||||
compression-level: 0
|
||||
archive: false
|
||||
archive: true
|
||||
|
||||
Reference in New Issue
Block a user