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
6 changes: 4 additions & 2 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
# Build GNU Linux binaries on Jammy so they remain compatible with
# Ubuntu 22.04's glibc baseline and newer distributions.
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
- os: ubuntu-latest
- os: ubuntu-22.04
target: aarch64-unknown-linux-gnu
- os: macos-15-intel
target: x86_64-apple-darwin
Expand Down
21 changes: 21 additions & 0 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,27 @@ fn read_state(repo_root: &Path) -> serde_json::Value {
serde_json::from_str(&content).expect("failed to parse state.json")
}

#[test]
fn test_release_linux_binaries_target_ubuntu_22_04() {
let workflow = std::fs::read_to_string(
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(".github/workflows/release-plz.yml"),
)
.expect("read release workflow");

for target in ["x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu"] {
let expected = format!(" - os: ubuntu-22.04\n target: {target}");
let old = format!(" - os: ubuntu-latest\n target: {target}");
assert!(
workflow.contains(&expected),
"release workflow should build {target} on ubuntu-22.04 for glibc compatibility"
);
assert!(
!workflow.contains(&old),
"release workflow should not build {target} on ubuntu-latest"
);
}
}

// ===========================================================================
// Worktree CRUD
// ===========================================================================
Expand Down