From 1d81fea1a330a5932f1a1dfae06c89a6e37d69c2 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 16 Jan 2025 17:57:07 +0100 Subject: [PATCH] Remove extensions unused with GHC2024 --- .gitea/workflows/deploy.yaml | 29 +++++++++++++++++++++++++++++ slackbuilder.cabal | 8 +------- 2 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..400464b --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,29 @@ +name: Deploy + +on: + push: + tags: + - '**' + +jobs: + release: + runs-on: buildenv + 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@v4 + - 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 }} diff --git a/slackbuilder.cabal b/slackbuilder.cabal index e7a0740..2beb676 100644 --- a/slackbuilder.cabal +++ b/slackbuilder.cabal @@ -49,19 +49,13 @@ common dependencies unordered-containers ^>= 0.2.20, vector ^>= 0.13.0, word8 ^>= 0.1.3 - default-language: GHC2021 + default-language: GHC2024 default-extensions: - DataKinds DuplicateRecordFields - ExplicitForAll - LambdaCase - NamedFieldPuns OverloadedStrings RecordWildCards QuasiQuotes TemplateHaskell - TupleSections - TypeApplications library import: dependencies