Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .cirrus.yml

This file was deleted.

35 changes: 32 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,40 @@ jobs:
fail-fast: true
matrix:
include:
# FIXME(#4740): FreeBSD 13 tests are extremely flaky and fail most of the time
# - release: "13.4"
# target: x86_64-unknown-freebsd
- release: "15.0"
target: i686-unknown-freebsd
- release: "14.4"
target: x86_64-unknown-freebsd
- release: "15.0"
target: x86_64-unknown-freebsd
- target: x86_64-pc-solaris
- target: x86_64-unknown-netbsd
timeout-minutes: 25
steps:
- uses: actions/checkout@v6
- name: Test on FreeBSD
uses: vmactions/freebsd-vm@v1.4.5
if: contains(matrix.target, 'freebsd')
with:
release: ${{ matrix.release }}
usesh: true
copyback: false
prepare: |
set -ex
pkg install -y libnghttp2 curl
curl https://sh.rustup.rs -sSf --output rustup.sh
sh rustup.sh -y --default-toolchain nightly --profile=minimal
. "$HOME/.cargo/env"
rustup target add ${{ matrix.target }}
run: |
set -ex
. "$HOME/.cargo/env"
LIBC_CI=1 ./ci/run.sh ${{ matrix.target }}
./ci/run.sh ${{ matrix.target }}

- name: test on Solaris
uses: vmactions/solaris-vm@v1.3.2
if: contains(matrix.target, 'solaris')
Expand All @@ -288,7 +317,7 @@ jobs:
mem: 4096
copyback: false
prepare: |
set -x
set -ex
source <(curl -s https://raw.githubusercontent.com/psumbera/solaris-rust/refs/heads/main/sh.rust-web-install)
rustc --version
uname -a
Expand All @@ -305,12 +334,12 @@ jobs:
mem: 4096
copyback: false
prepare: |
set -x
set -ex
/usr/sbin/pkg_add curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
--profile minimal --default-toolchain nightly -y
run: |
set -x
set -ex
. "$HOME/.cargo/env"
which rustc
rustc -Vv
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "libc"
version = "1.0.0-alpha.3"
keywords = ["libc", "ffi", "bindings", "operating", "system"]
categories = ["external-ffi-bindings", "no-std", "os"]
exclude = ["/ci/*", "/.github/*", "/.cirrus.yml", "/triagebot.toml"]
exclude = ["/ci/*", "/.github/*", "/triagebot.toml"]
description = "Raw FFI bindings to platform libraries like libc."
authors = ["The Rust Project Developers"]
edition = "2021"
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# libc - Raw FFI bindings to platforms' system libraries

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

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

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

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

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

[GitHub Actions]: https://github.com/rust-lang/libc/actions
[GHA Status]: https://github.com/rust-lang/libc/workflows/CI/badge.svg
[Cirrus CI]: https://cirrus-ci.com/github/rust-lang/libc
[Cirrus CI Status]: https://api.cirrus-ci.com/github/rust-lang/libc.svg
[crates.io]: https://crates.io/crates/libc
[Latest Version]: https://img.shields.io/crates/v/libc.svg
[Documentation]: https://docs.rs/libc/badge.svg
Expand Down
6 changes: 2 additions & 4 deletions ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ First up, let's talk about the files in this directory:

# CI Systems

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

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

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

## QEMU
Expand Down
1 change: 0 additions & 1 deletion triagebot.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ check-commits = "uncanonicalized"

[autolabel."A-CI"]
trigger_files = [
".cirrus.yml",
".github",
"ci",
]
Expand Down