Bumps the all-actions group with 6 updates: | Package | From | To | | --- | --- | --- | | [acj/freebsd-firecracker-action](https://github.com/acj/freebsd-firecracker-action) | `0.10.4` | `0.11.0` | | [github/codeql-action/init](https://github.com/github/codeql-action) | `4.37.1` | `4.37.3` | | [github/codeql-action/autobuild](https://github.com/github/codeql-action) | `4.37.1` | `4.37.3` | | [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.37.1` | `4.37.3` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.4.3` | `2.4.4` | | [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) | `4.37.1` | `4.37.3` | Updates `acj/freebsd-firecracker-action` from 0.10.4 to 0.11.0 - [Release notes](https://github.com/acj/freebsd-firecracker-action/releases) - [Commits](https://github.com/acj/freebsd-firecracker-action/compare/0fe13161c7d388eed0570eac668e1ba8fc1f1e4e...e04896d2dd91f7ec7381e5f363c6fbe83ee445c3) Updates `github/codeql-action/init` from 4.37.1 to 4.37.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/7188fc363630916deb702c7fdcf4e481b751f97a...e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81) Updates `github/codeql-action/autobuild` from 4.37.1 to 4.37.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/7188fc363630916deb702c7fdcf4e481b751f97a...e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81) Updates `github/codeql-action/analyze` from 4.37.1 to 4.37.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/7188fc363630916deb702c7fdcf4e481b751f97a...e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81) Updates `ossf/scorecard-action` from 2.4.3 to 2.4.4 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](https://github.com/ossf/scorecard-action/compare/4eaacf0543bb3f2c246792bd56e8cdeffafb205a...2d1146689b8cda280b9bc96326124645441f03bc) Updates `github/codeql-action/upload-sarif` from 4.37.1 to 4.37.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/7188fc363630916deb702c7fdcf4e481b751f97a...e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81) --- updated-dependencies: - dependency-name: acj/freebsd-firecracker-action dependency-version: 0.11.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all-actions - dependency-name: github/codeql-action/init dependency-version: 4.37.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-actions - dependency-name: github/codeql-action/autobuild dependency-version: 4.37.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-actions - dependency-name: github/codeql-action/analyze dependency-version: 4.37.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-actions - dependency-name: ossf/scorecard-action dependency-version: 2.4.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-actions - dependency-name: github/codeql-action/upload-sarif dependency-version: 4.37.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-actions ... Signed-off-by: dependabot[bot] <support@github.com>
209 lines
7.2 KiB
YAML
209 lines
7.2 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
FreeBSD:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
bs: [autotools, cmake]
|
|
steps:
|
|
- name: Build and test on a FreeBSD 15 firecracker VM
|
|
uses: acj/freebsd-firecracker-action@e04896d2dd91f7ec7381e5f363c6fbe83ee445c3 # v0.11.0
|
|
with:
|
|
run-in-vm: |
|
|
chflags -R noschg / && \
|
|
fetch -o - https://download.freebsd.org/releases/amd64/15.0-RELEASE/base.txz | bsdtar -x -C / -f - && \
|
|
pkg bootstrap -y && \
|
|
cd firecracker-freebsd && \
|
|
env BS=${{ matrix.bs }} ./build/ci/github_actions/freebsd.sh prepare && \
|
|
env BS=${{ matrix.bs }} CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./build/ci/build.sh -a autogen && \
|
|
env BS=${{ matrix.bs }} MAKE=gmake CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./build/ci/build.sh -a configure && \
|
|
env BS=${{ matrix.bs }} MAKE=gmake MAKE_ARGS="-j 2" ./build/ci/build.sh -a build && \
|
|
env BS=${{ matrix.bs }} MAKE=gmake SKIP_TEST_RESTORE_ATIME=1 MAKE_ARGS="-j 2" ./build/ci/build.sh -a test && \
|
|
env BS=${{ matrix.bs }} ./build/ci/github_actions/freebsd.sh test && \
|
|
env BS=${{ matrix.bs }} MAKE=gmake MAKE_ARGS="-j 2" ./build/ci/build.sh -a install
|
|
MacOS:
|
|
runs-on: macos-15
|
|
strategy:
|
|
matrix:
|
|
bs: [autotools, cmake]
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Install dependencies
|
|
run: ./build/ci/github_actions/install-macos-dependencies.sh
|
|
- name: Autogen
|
|
run: ./build/ci/build.sh -a autogen
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
- name: Configure
|
|
run: ./build/ci/build.sh -a configure
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
# Avoid using liblzma from the Xcode 16 / MacOSX15.0.sdk, which fails RISCV filter tests.
|
|
CMAKE_ARGS: -D LIBLZMA_LIBRARY=/opt/homebrew/lib/liblzma.dylib -D LIBLZMA_INCLUDE_DIR=/opt/homebrew/include/lzma.h
|
|
- name: Build
|
|
run: ./build/ci/build.sh -a build
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
MAKE_ARGS: -j3
|
|
- name: Test
|
|
run: ./build/ci/build.sh -a test
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
SKIP_OPEN_FD_ERR_TEST: 1
|
|
IGNORE_TRAVERSALS_TEST4: 1
|
|
MAKE_ARGS: -j3
|
|
CTEST_OUTPUT_ON_FAILURE: ON
|
|
- name: Install
|
|
run: ./build/ci/build.sh -a install
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
MAKE_ARGS: -j3
|
|
- name: Artifact
|
|
run: ./build/ci/build.sh -a artifact
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: libarchive-macos-${{ matrix.bs }}-${{ github.sha }}
|
|
path: libarchive.tar.xz
|
|
|
|
Ubuntu:
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
matrix:
|
|
bs: [autotools, cmake]
|
|
crypto: [mbedtls, nettle, openssl]
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Update apt cache
|
|
run: sudo apt-get update
|
|
- name: Install dependencies
|
|
run: sudo apt-get install -y autoconf automake build-essential cmake git libssl-dev nettle-dev libmbedtls-dev libacl1-dev libbz2-dev liblzma-dev liblz4-dev libzstd-dev lzop pkg-config zlib1g-dev
|
|
- name: Autogen
|
|
run: ./build/ci/build.sh -a autogen
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
- name: Configure
|
|
run: ./build/ci/build.sh -a configure
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
CRYPTO: ${{ matrix.crypto }}
|
|
- name: Build
|
|
run: ./build/ci/build.sh -a build
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
MAKE_ARGS: -j4
|
|
- name: Test
|
|
run: ./build/ci/build.sh -a test
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
SKIP_OPEN_FD_ERR_TEST: 1
|
|
MAKE_ARGS: -j4
|
|
CTEST_OUTPUT_ON_FAILURE: ON
|
|
- name: Install
|
|
run: ./build/ci/build.sh -a install
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
- name: Artifact
|
|
run: ./build/ci/build.sh -a artifact
|
|
env:
|
|
BS: ${{ matrix.bs }}
|
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: libarchive-ubuntu-${{ matrix.bs }}-${{ matrix.crypto }}-${{ github.sha }}
|
|
path: libarchive.tar.xz
|
|
Ubuntu-distcheck:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Update package definitions
|
|
run: sudo apt-get update
|
|
- name: Install dependencies
|
|
run: sudo apt-get install -y autoconf automake bsdmainutils build-essential cmake ghostscript git groff libssl-dev libacl1-dev libbz2-dev liblzma-dev liblz4-dev libzstd-dev lzop pkg-config zip zlib1g-dev
|
|
- name: Autogen
|
|
run: ./build/ci/build.sh -a autogen
|
|
- name: Configure
|
|
run: ./build/ci/build.sh -a configure
|
|
- name: Distcheck
|
|
run: ./build/ci/build.sh -a distcheck
|
|
env:
|
|
SKIP_OPEN_FD_ERR_TEST: 1
|
|
- name: Dist-Artifact
|
|
run: ./build/ci/build.sh -a dist-artifact
|
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: libarchive-${{ github.sha }}
|
|
path: libarchive-dist.tar
|
|
|
|
Windows:
|
|
runs-on: windows-2022
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
be: [mingw-gcc, cygwin-gcc, msvc]
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Install Cygwin
|
|
uses: cygwin/cygwin-install-action@3f0a3f9f988f7e96b8c18098ae05eaec175f5b52 # v6
|
|
if: ${{ matrix.be=='cygwin-gcc' }}
|
|
with:
|
|
install-dir: "D:\\cygwin"
|
|
packages: |-
|
|
make autoconf automake cmake
|
|
gcc-core binutils libtool pkg-config
|
|
bison zlib-devel libbz2-devel liblzma-devel
|
|
liblz4-devel libiconv-devel libxml2-devel
|
|
libzstd-devel libssl-devel
|
|
- name: Install MinGW (msys2)
|
|
uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2.32.0
|
|
if: ${{ matrix.be=='mingw-gcc' }}
|
|
with:
|
|
location: "D:\\"
|
|
install: |-
|
|
mingw-w64-x86_64-gcc
|
|
mingw-w64-x86_64-autotools
|
|
mingw-w64-x86_64-binutils
|
|
mingw-w64-x86_64-pkgconf
|
|
mingw-w64-x86_64-cmake
|
|
mingw-w64-x86_64-make
|
|
mingw-w64-x86_64-zlib
|
|
mingw-w64-x86_64-bzip2
|
|
mingw-w64-x86_64-xz
|
|
mingw-w64-x86_64-zstd
|
|
- name: Configure
|
|
run: ./build/ci/github_actions/ci.cmd configure
|
|
shell: cmd
|
|
env:
|
|
BE: ${{ matrix.be }}
|
|
- name: Build
|
|
run: ./build/ci/github_actions/ci.cmd build
|
|
shell: cmd
|
|
env:
|
|
BE: ${{ matrix.be }}
|
|
- name: Test
|
|
run: ./build/ci/github_actions/ci.cmd test
|
|
shell: cmd
|
|
env:
|
|
BE: ${{ matrix.be }}
|
|
CTEST_OUTPUT_ON_FAILURE: ON
|
|
- name: Install
|
|
run: ./build/ci/github_actions/ci.cmd install
|
|
shell: cmd
|
|
env:
|
|
BE: ${{ matrix.be }}
|
|
- name: Artifact
|
|
run: ./build/ci/github_actions/ci.cmd artifact
|
|
shell: cmd
|
|
env:
|
|
BE: ${{ matrix.be }}
|
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: libarchive-windows-${{ matrix.be }}-${{ github.sha }}
|
|
path: ${{ matrix.be=='cygwin-gcc' && 'libarchive.tar.xz' || 'libarchive.zip' }}
|