mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 15:34:47 +02:00
Update Build CI. Tightening it down and fail-fast to false.
This commit is contained in:
@@ -2,9 +2,13 @@ name: Linux CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "unreal60_dev" ]
|
branches: ["unreal60_dev"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "unreal60_dev" ]
|
branches: ["unreal60_dev"]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NOSERVICES: 1
|
NOSERVICES: 1
|
||||||
@@ -13,26 +17,43 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
compiler: [ {c: gcc, cpp: g++}, {c: clang, cpp: clang++} ]
|
compiler:
|
||||||
|
- { c: gcc, cpp: g++ }
|
||||||
|
- { c: clang, cpp: clang++ }
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.compiler.c }}
|
CC: ${{ matrix.compiler.c }}
|
||||||
CXX: ${{ matrix.compiler.cpp }}
|
CXX: ${{ matrix.compiler.cpp }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: installdependencies
|
- name: Checkout
|
||||||
run: |
|
#uses: actions/checkout@v4
|
||||||
sudo rm -f /var/lib/man-db/auto-update
|
#no, pin to v4.2.2 for security reasons:
|
||||||
sudo apt-get install build-essential pkg-config libssl-dev libpcre2-dev libargon2-dev libsodium-dev libc-ares-dev libcurl4-openssl-dev libjansson-dev
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
- name: installpythondependencies
|
#and we don't need the credentials later..
|
||||||
run: |
|
with:
|
||||||
python -m pip install --break-system-packages pyasyncore
|
persist-credentials: false
|
||||||
python -m pip install --break-system-packages pyasynchat
|
fetch-depth: 1
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: build
|
- name: Install dependencies
|
||||||
run: extras/build-tests/nix/build
|
run: |
|
||||||
- name: run-tests
|
sudo rm -f /var/lib/man-db/auto-update
|
||||||
run: extras/build-tests/nix/run-tests
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y --no-install-recommends \
|
||||||
|
build-essential pkg-config libssl-dev libpcre2-dev libargon2-dev \
|
||||||
|
libsodium-dev libc-ares-dev libcurl4-openssl-dev libjansson-dev
|
||||||
|
|
||||||
|
- name: Install python dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --break-system-packages pyasyncore pyasynchat
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: extras/build-tests/nix/build
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: extras/build-tests/nix/run-tests
|
||||||
|
|||||||
Reference in New Issue
Block a user