Remove actions
This commit is contained in:
@@ -1,37 +0,0 @@
|
|||||||
name: Build
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
branches: [master]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
audit:
|
|
||||||
container: buildenv:6
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
- run: hlint src lib test
|
|
||||||
|
|
||||||
test:
|
|
||||||
container: buildenv:6
|
|
||||||
steps:
|
|
||||||
- name: Set up environment
|
|
||||||
run: |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get upgrade -y
|
|
||||||
apt-get install -y pkg-config liblzma-dev
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
- run: cabal update
|
|
||||||
- run: cabal test --test-show-details=streaming
|
|
||||||
|
|
||||||
release:
|
|
||||||
container: buildenv:6
|
|
||||||
steps:
|
|
||||||
- name: Set up environment
|
|
||||||
run: |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get upgrade -y
|
|
||||||
apt-get install -y pkg-config liblzma-dev
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
- run: cabal update
|
|
||||||
- run: cabal build
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
name: Deploy
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- '**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
container: buildenv:6
|
|
||||||
steps:
|
|
||||||
- name: Set up environment
|
|
||||||
run: |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get upgrade -y
|
|
||||||
apt-get install -y pkg-config liblzma-dev
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
- run: cabal update
|
|
||||||
- run: cabal build
|
|
||||||
- name: Archive
|
|
||||||
run: |
|
|
||||||
DISTRIBUTION=$(echo $GITHUB_REF_NAME | awk '{ gsub(/^v/, "slackbuilder-"); print $0 }')
|
|
||||||
cabal install --installdir=$DISTRIBUTION/bin --install-method=copy
|
|
||||||
strip $DISTRIBUTION/bin/slackbuilder
|
|
||||||
tar Jcvf $DISTRIBUTION.tar.xz $DISTRIBUTION
|
|
||||||
- uses: akkuman/gitea-release-action@v1
|
|
||||||
with:
|
|
||||||
files: "*.tar.xz"
|
|
||||||
token: ${{ secrets.API_KEY }}
|
|
||||||
Reference in New Issue
Block a user