-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update CI providers and setup (#228)
This replaces Drone and Travis with GitHub Actions and an additional step in the Cirrus matrix. Travis is no longer posting build statuses to this repository and Drone lists every job as "killed" with no explanation. GHA and Cirrus are reliable alternatives. This commit encompasses the following changes: - Linux x86-64 with gcc now builds on GHA (was both Travis and Drone) - Linux ARM64 with gcc now builds on Cirrus (was Drone) - macOS with clang now builds on GHA (was Travis) but it's important to note that `macos-latest` uses Apple's ARM-based processors rather than the legacy x86-64 Intel processors. That is, the macOS build on CI is `arm64-apple-darwin` rather than `x86_64-apple-darwin`. - Linux x86-64 with clang now builds on GHA (was Travis) - FreeBSD 12.3 is removed from CI as that version is EOL - FreeBSD 13.1 is replaced with 13.3 - FreeBSD 13 and 14 now use release images rather than development snapshots. Notably, development snapshot images seem to be culled for versions no longer in development, which is why the 12.3 and 13.1 builds were unable to locate the specified images. - `tools/ci-build.sh` now attempts to determine the core count automatically. There is too much variability across CI providers for `--cores=4` to be universally appropriate; as of this writing, GHA uses 4 cores for Linux and 3 for macOS, and Cirrus uses 2. - Travis and Drone badges in the README are replaced by GHA - Linux PowerPC with clang is no longer run on CI, so it's removed from the list in the README - GitHub's Dependabot is added in order to automatically keep the actions used up to date
- Loading branch information
Showing
7 changed files
with
75 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
env: | ||
CIRRUS_CLONE_DEPTH: 1 | ||
ARCH: amd64 | ||
|
||
task: | ||
matrix: | ||
- name: freebsd12-amd64 | ||
freebsd_instance: | ||
image_family: freebsd-12-3-snap | ||
- name: freebsd13-amd64 | ||
freebsd_instance: | ||
image_family: freebsd-13-1-snap | ||
image_family: freebsd-13-3 | ||
- name: freebsd14-amd64 | ||
freebsd_instance: | ||
image_family: freebsd-14-0-snap | ||
image_family: freebsd-14-0 | ||
- name: linux-arm64 | ||
arm_container: | ||
image: ubuntu:latest | ||
setup_script: | | ||
apt-get update | ||
apt-get install -y gcc make | ||
script: | ||
- cc --version | ||
- export CFLAGS="-DITERATE=400 -DPAIRS_S=100 -DITERATIONS=24" | ||
- ./tools/ci-build.sh --cores=$(sysctl -n hw.ncpu) | ||
- ./tools/ci-build.sh | ||
- make check |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [master] | ||
tags: ["*"] | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
test: | ||
name: ${{ matrix.os }} - ${{ matrix.compiler }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
compiler: | ||
- gcc | ||
- clang | ||
exclude: | ||
- os: macos-latest | ||
compiler: gcc | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: ${{ matrix.compiler }} --version | ||
- name: Build | ||
run: ./tools/ci-build.sh CC=${{ matrix.compiler }} | ||
- name: Test | ||
run: make check |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters