summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml67
-rw-r--r--.github/workflows/codecov.yml5
-rw-r--r--.github/workflows/codeql.yml2
3 files changed, 37 insertions, 37 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8e34313..3d9899e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,18 +5,19 @@ on: [push, pull_request]
jobs:
linux-x86:
name: Linux (x86)
-
runs-on: ubuntu-24.04
+ # Don't run on both pushes and pull requests
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
+
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update -y
sudo apt-get install -y \
- expect \
mandoc \
gcc-multilib \
libgcc-s1:i386 \
@@ -47,17 +48,17 @@ jobs:
linux-arm:
name: Linux (Arm64)
-
runs-on: ubuntu-24.04-arm
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
+
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y \
- expect \
mandoc \
acl \
libacl1-dev \
@@ -78,11 +79,12 @@ jobs:
macos:
name: macOS
-
runs-on: macos-15
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
+
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Install dependencies
run: |
@@ -95,14 +97,15 @@ jobs:
freebsd:
name: FreeBSD
-
runs-on: ubuntu-24.04
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
+
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Run tests
- uses: cross-platform-actions/action@v0.27.0
+ uses: cross-platform-actions/action@v0.29.0
with:
operating_system: freebsd
version: "14.2"
@@ -110,10 +113,8 @@ jobs:
run: |
sudo pkg install -y \
bash \
- expect \
oniguruma \
- pkgconf \
- tcl-wrapper
+ pkgconf
sudo mount -t fdescfs none /dev/fd
.github/diag.sh make -j$(nproc) distcheck
@@ -124,22 +125,22 @@ jobs:
openbsd:
name: OpenBSD
-
runs-on: ubuntu-24.04
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
+
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Run tests
- uses: cross-platform-actions/action@v0.27.0
+ uses: cross-platform-actions/action@v0.29.0
with:
operating_system: openbsd
- version: "7.6"
+ version: "7.7"
run: |
sudo pkg_add \
bash \
- expect \
gmake \
oniguruma
jobs=$(sysctl -n hw.ncpu)
@@ -153,14 +154,15 @@ jobs:
netbsd:
name: NetBSD
-
runs-on: ubuntu-24.04
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
+
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Run tests
- uses: cross-platform-actions/action@v0.27.0
+ uses: cross-platform-actions/action@v0.29.0
with:
operating_system: netbsd
version: "10.1"
@@ -170,8 +172,7 @@ jobs:
sudo pkgin -y install \
bash \
oniguruma \
- pkgconf \
- tcl-expect
+ pkgconf
jobs=$(sysctl -n hw.ncpu)
./configure
.github/diag.sh make -j$jobs check TEST_FLAGS="--sudo --verbose=skipped"
@@ -183,11 +184,12 @@ jobs:
dragonflybsd:
name: DragonFly BSD
-
runs-on: ubuntu-24.04
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
+
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Run tests
uses: vmactions/dragonflybsd-vm@v1
@@ -198,18 +200,17 @@ jobs:
prepare: |
pkg install -y \
bash \
- expect \
+ llvm18 \
oniguruma \
pkgconf \
- sudo \
- tcl-wrapper
+ sudo
pw useradd -n action -m -G wheel -s /usr/local/bin/bash
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >>/usr/local/etc/sudoers
run: |
chown -R action:action .
jobs=$(sysctl -n hw.ncpu)
- sudo -u action ./configure
+ sudo -u action ./configure CC=clang18
sudo -u action .github/diag.sh make -j$jobs check TEST_FLAGS="--sudo --verbose=skipped"
- uses: actions/upload-artifact@v4
@@ -219,11 +220,12 @@ jobs:
omnios:
name: OmniOS
-
runs-on: ubuntu-24.04
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
+
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Run tests
uses: vmactions/omnios-vm@v1
@@ -235,7 +237,6 @@ jobs:
pkg install \
bash \
build-essential \
- expect \
gnu-make \
onig \
sudo
diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml
index 4cce8ed..70a6ff8 100644
--- a/.github/workflows/codecov.yml
+++ b/.github/workflows/codecov.yml
@@ -7,13 +7,12 @@ jobs:
runs-on: ubuntu-24.04
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y \
- expect \
gcc \
acl \
libacl1-dev \
@@ -25,7 +24,7 @@ jobs:
- name: Generate coverage
run: |
- ./configure --enable-gcov
+ ./configure --enable-gcov EXTRA_CFLAGS="-std=gnu2x"
make -j$(nproc) check TEST_FLAGS="--sudo"
gcov -abcfpu obj/*/*.o
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 1f2041c..2b4c80b 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -24,7 +24,7 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: Install dependencies
run: |