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