Update workflow
Build Artifacts / build (push) Failing after 1m42s

This commit is contained in:
2026-08-08 23:15:05 -07:00
parent 9a09abefbb
commit 88bafbd07e
3 changed files with 19 additions and 11 deletions
+16 -6
View File
@@ -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
+2 -3
View File
@@ -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.
@@ -30,7 +29,7 @@ snapshot:
# - auto-update # - auto-update
# - wai # - wai
packages: packages:
- . - .
# Dependency packages to be pulled from upstream that are not in the snapshot. # Dependency packages to be pulled from upstream that are not in the snapshot.
# These entries can reference officially published versions as well as # These entries can reference officially published versions as well as
# forks / in-progress versions pinned to a git hash. For example: # forks / in-progress versions pinned to a git hash. For example:
+1 -2
View File
@@ -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