Files
license-tool-hs/.gitea/workflows/build.yaml
T
Zander671 185ee063b6
Build Artifacts / build (push) Failing after 27s
Fix last commit (more workflow stuff)
2026-08-09 00:46:36 -07:00

46 lines
1.3 KiB
YAML

name: Build Artifacts
on: push
premissions:
code: read
releases: write
jobs:
build:
runs-on: ubuntu-latest
env:
STACK_YAML: ${{ gitea.workspace }}/stack.yaml
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: Cache GHC
uses: actions/cache@v4
with:
path: |
~/.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
run: stack build
- name: Make Tarball
run: |
mkdir usr/
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
cp -r "${{ gitea.workspace }}/licenses" usr/share/license-tool
- name: Upload Artifacts
uses: https://gitea.com/actions/gitea-upload-artifact@v4
with:
path: usr/
name: license-tool-hs-${{ gitea.head_ref }}.${{ gitea.sha }}
compression-level: 0
archive: true