Skip to content

Commit 088a284

Browse files
committed
chore: migrate from Cirrus CI to GHA
1 parent f3417ae commit 088a284

6 files changed

Lines changed: 38 additions & 46 deletions

File tree

.cirrus.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,40 @@ jobs:
274274
fail-fast: true
275275
matrix:
276276
include:
277+
# FIXME(#4740): FreeBSD 13 tests are extremely flaky and fail most of the time
278+
# - release: "13.4"
279+
# target: x86_64-unknown-freebsd
280+
- release: "15.0"
281+
target: i686-unknown-freebsd
282+
- release: "14.4"
283+
target: x86_64-unknown-freebsd
284+
- release: "15.0"
285+
target: x86_64-unknown-freebsd
277286
- target: x86_64-pc-solaris
278287
- target: x86_64-unknown-netbsd
279288
timeout-minutes: 25
280289
steps:
281290
- uses: actions/checkout@v6
291+
- name: Test on FreeBSD
292+
uses: vmactions/freebsd-vm@v1.4.5
293+
if: contains(matrix.target, 'freebsd')
294+
with:
295+
release: ${{ matrix.release }}
296+
usesh: true
297+
copyback: false
298+
prepare: |
299+
set -ex
300+
pkg install -y libnghttp2 curl
301+
curl https://sh.rustup.rs -sSf --output rustup.sh
302+
sh rustup.sh -y --default-toolchain nightly --profile=minimal
303+
. "$HOME/.cargo/env"
304+
rustup target add ${{ matrix.target }}
305+
run: |
306+
set -ex
307+
. "$HOME/.cargo/env"
308+
LIBC_CI=1 ./ci/run.sh ${{ matrix.target }}
309+
./ci/run.sh ${{ matrix.target }}
310+
282311
- name: test on Solaris
283312
uses: vmactions/solaris-vm@v1.3.2
284313
if: contains(matrix.target, 'solaris')
@@ -288,7 +317,7 @@ jobs:
288317
mem: 4096
289318
copyback: false
290319
prepare: |
291-
set -x
320+
set -ex
292321
source <(curl -s https://raw.githubusercontent.com/psumbera/solaris-rust/refs/heads/main/sh.rust-web-install)
293322
rustc --version
294323
uname -a
@@ -305,12 +334,12 @@ jobs:
305334
mem: 4096
306335
copyback: false
307336
prepare: |
308-
set -x
337+
set -ex
309338
/usr/sbin/pkg_add curl
310339
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
311340
--profile minimal --default-toolchain nightly -y
312341
run: |
313-
set -x
342+
set -ex
314343
. "$HOME/.cargo/env"
315344
which rustc
316345
rustc -Vv

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libc"
33
version = "1.0.0-alpha.3"
44
keywords = ["libc", "ffi", "bindings", "operating", "system"]
55
categories = ["external-ffi-bindings", "no-std", "os"]
6-
exclude = ["/ci/*", "/.github/*", "/.cirrus.yml", "/triagebot.toml"]
6+
exclude = ["/ci/*", "/.github/*", "/triagebot.toml"]
77
description = "Raw FFI bindings to platform libraries like libc."
88
authors = ["The Rust Project Developers"]
99
edition = "2021"

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# libc - Raw FFI bindings to platforms' system libraries
22

3-
[![GHA Status]][GitHub Actions] [![Cirrus CI Status]][Cirrus CI] [![Latest Version]][crates.io] [![Documentation]][docs.rs] ![License]
3+
[![GHA Status]][GitHub Actions] [![Latest Version]][crates.io] [![Documentation]][docs.rs] ![License]
44

55
`libc` provides all of the definitions necessary to easily interoperate with C
66
code (or "C-like" code) on each of the platforms that Rust supports. This
@@ -67,8 +67,8 @@ you want to see.
6767

6868
See [`ci/verify-build.py`](https://github.com/rust-lang/libc/blob/HEAD/ci/verify-build.py) for
6969
the platforms on which `libc` is guaranteed to build for each Rust toolchain.
70-
The test-matrix at [GitHub Actions] and [Cirrus CI] show the platforms in which
71-
`libc` tests are run.
70+
The test matrices at [GitHub Actions] show the platforms in which `libc` tests
71+
are run.
7272

7373
<div class="platform_docs"></div>
7474

@@ -102,8 +102,6 @@ dual licensed as above, without any additional terms or conditions.
102102

103103
[GitHub Actions]: https://github.com/rust-lang/libc/actions
104104
[GHA Status]: https://github.com/rust-lang/libc/workflows/CI/badge.svg
105-
[Cirrus CI]: https://cirrus-ci.com/github/rust-lang/libc
106-
[Cirrus CI Status]: https://api.cirrus-ci.com/github/rust-lang/libc.svg
107105
[crates.io]: https://crates.io/crates/libc
108106
[Latest Version]: https://img.shields.io/crates/v/libc.svg
109107
[Documentation]: https://docs.rs/libc/badge.svg

ci/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ First up, let's talk about the files in this directory:
2020

2121
# CI Systems
2222

23-
Currently this repository leverages a combination of GitHub Actions and Cirrus
24-
CI for running tests. You can find tested triples in [Actions config] or
25-
[Cirrus config].
23+
Currently this repository uses GitHub Actions workflows for running tests. You
24+
can find tested triples in [Actions config].
2625

2726
The Windows triples are all pretty standard, they just set up their environment
2827
then run tests, no need for downloading any extra target libs (we just download
@@ -44,7 +43,6 @@ The remaining architectures look like:
4443
and compile/run tests. More information on that below.
4544

4645
[Actions config]: https://github.com/rust-lang/libc/tree/HEAD/.github/workflows
47-
[Cirrus config]: https://github.com/rust-lang/libc/blob/HEAD/.cirrus.yml
4846
[android-docker]: https://github.com/rust-lang/libc/blob/HEAD/ci/docker/x86_64-linux-android/Dockerfile
4947

5048
## QEMU

triagebot.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ check-commits = "uncanonicalized"
2222

2323
[autolabel."A-CI"]
2424
trigger_files = [
25-
".cirrus.yml",
2625
".github",
2726
"ci",
2827
]

0 commit comments

Comments
 (0)