@@ -8,22 +8,32 @@ premissions:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
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 Haskell
|
- name: Install Stack
|
||||||
uses: haskell-actions/setup@v2.11.0
|
uses: haskell-actions/setup@v2.11.0
|
||||||
with:
|
with:
|
||||||
enable-stack: true
|
enable-stack: true
|
||||||
stack-no-global: true
|
stack-no-global: true
|
||||||
stack-setup-ghc: true
|
stack-setup-ghc: false
|
||||||
|
- name: Install GHC
|
||||||
|
run: stack setup
|
||||||
- name: Build with Stack
|
- name: Build with Stack
|
||||||
run: env STACK_YAML="${{ gitea.workspace }}/stack.yaml" stack build
|
run: stack build
|
||||||
- name: Create Tarball
|
- name: Make Tarball
|
||||||
run: |
|
run: |
|
||||||
export STACK_YAML="${{ gitea.workspace }}/stack.yaml"
|
|
||||||
mkdir usr/
|
mkdir usr/
|
||||||
stack --local-bin-path usr/bin/ build --copy-bins
|
stack --local-bin-path usr/bin/ build --copy-bins
|
||||||
install -m 0644 -D "${{ gitea.workspace }}/completion/license-tool.zsh" usr/share/zsh/site-functions/_license-tool
|
install -m 0644 -D "${{ gitea.workspace }}/completion/license-tool.zsh" usr/share/zsh/site-functions/_license-tool
|
||||||
cp -r "${{ gitea.workspace }}/licenses" usr/share/license-tool
|
cp -r "${{ gitea.workspace }}/licenses" usr/share/license-tool
|
||||||
tar -caf license-tool-hs.tar.gz usr/
|
tar -caf "${tarball}" usr/
|
||||||
|
- name: Upload Artifacts
|
||||||
|
uses: actions/upload-artifact@v7
|
||||||
|
with:
|
||||||
|
path: ${{ env.tarball }}
|
||||||
|
compression-level: 0
|
||||||
|
archive: false
|
||||||
|
|||||||
+1
-2
@@ -17,8 +17,7 @@
|
|||||||
#
|
#
|
||||||
# snapshot: ./custom-snapshot.yaml
|
# snapshot: ./custom-snapshot.yaml
|
||||||
# snapshot: https://example.com/snapshots/2024-01-01.yaml
|
# snapshot: https://example.com/snapshots/2024-01-01.yaml
|
||||||
snapshot:
|
snapshot: lts-24.38
|
||||||
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/24/38.yaml
|
|
||||||
|
|
||||||
# User packages to be built.
|
# User packages to be built.
|
||||||
# Various formats can be used as shown in the example below.
|
# Various formats can be used as shown in the example below.
|
||||||
|
|||||||
+1
-2
@@ -9,5 +9,4 @@ snapshots:
|
|||||||
sha256: abc790b571e0c70e929db74b329e3c18d7e76a6e173e8bdf94f1ba20770d4c24
|
sha256: abc790b571e0c70e929db74b329e3c18d7e76a6e173e8bdf94f1ba20770d4c24
|
||||||
size: 728990
|
size: 728990
|
||||||
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/24/38.yaml
|
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/24/38.yaml
|
||||||
original:
|
original: lts-24.38
|
||||||
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/24/38.yaml
|
|
||||||
|
|||||||
Reference in New Issue
Block a user