Update CI

This commit is contained in:
Julian Ospald 2022-12-18 21:52:51 +08:00
parent a7e6e7c27d
commit ae092de4b6
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F
4 changed files with 10 additions and 9 deletions

View File

@ -41,7 +41,8 @@ jobs:
- uses: docker://arm64v8/ubuntu:focal - uses: docker://arm64v8/ubuntu:focal
name: Cleanup name: Cleanup
with: with:
args: rm -rf .ghcup/ args: rm -rf .ghcup/ cabal/ dist-newstyle/ out/
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx

View File

@ -13,8 +13,8 @@ on:
- cron: '0 2 * * *' - cron: '0 2 * * *'
jobs: jobs:
build-alpine: build-linux:
name: Build static linux binary name: Build linux binary
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
CABAL_VER: 3.6.2.0 CABAL_VER: 3.6.2.0
@ -203,9 +203,9 @@ jobs:
./out/* ./out/*
test-alpine: test-linux:
name: Test linux name: Test linux
needs: "build-alpine" needs: "build-linux"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
CABAL_VER: 3.6.2.0 CABAL_VER: 3.6.2.0
@ -379,7 +379,7 @@ jobs:
HOMEBREW_CHANGE_ARCH_TO_ARM: 1 HOMEBREW_CHANGE_ARCH_TO_ARM: 1
hls: hls:
name: hls name: hls
needs: build-alpine needs: build-linux
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GHC_VERSION: "8.10.7" GHC_VERSION: "8.10.7"
@ -410,7 +410,7 @@ jobs:
release: release:
name: release name: release
needs: ["test-alpine", "test-arm", "test-macwin", "hls"] needs: ["test-linux", "test-arm", "test-macwin", "hls"]
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
steps: steps:

View File

@ -23,7 +23,7 @@ RUN apt-get update && \
openssh-client \ openssh-client \
xz-utils \ xz-utils \
zlib1g-dev \ zlib1g-dev \
libnuma-dev libgmp10 libssl-dev liblzma-dev libbz2-dev wget lsb-release software-properties-common apt-transport-https gcc autoconf automake build-essential gzip \ libnuma-dev libgmp10 libssl-dev liblzma-dev libbz2-dev wget lsb-release software-properties-common apt-transport-https gcc autoconf automake build-essential gzip patchelf tree \
llvm-9 clang-9 && \ llvm-9 clang-9 && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*

View File

@ -23,7 +23,7 @@ RUN apt-get update && \
openssh-client \ openssh-client \
xz-utils \ xz-utils \
zlib1g-dev \ zlib1g-dev \
libnuma-dev libgmp10 libssl-dev liblzma-dev libbz2-dev wget lsb-release software-properties-common apt-transport-https gcc autoconf automake build-essential gzip \ libnuma-dev libgmp10 libssl-dev liblzma-dev libbz2-dev wget lsb-release software-properties-common apt-transport-https gcc autoconf automake build-essential gzip patchelf tree \
llvm-9 clang-9 && \ llvm-9 clang-9 && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*