@@ -8,22 +8,32 @@ premissions:
|
||||
jobs:
|
||||
build:
|
||||
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 Haskell
|
||||
- name: Install Stack
|
||||
uses: haskell-actions/setup@v2.11.0
|
||||
with:
|
||||
enable-stack: true
|
||||
stack-no-global: true
|
||||
stack-setup-ghc: true
|
||||
stack-setup-ghc: false
|
||||
- name: Install GHC
|
||||
run: stack setup
|
||||
- name: Build with Stack
|
||||
run: env STACK_YAML="${{ gitea.workspace }}/stack.yaml" stack build
|
||||
- name: Create Tarball
|
||||
run: stack build
|
||||
- name: Make Tarball
|
||||
run: |
|
||||
export STACK_YAML="${{ gitea.workspace }}/stack.yaml"
|
||||
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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user