Skip to content

Commit

Permalink
Remove LTO-only builds when PGO+LTO exists
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Feb 29, 2024
1 parent 82a038f commit 93c3028
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 94 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ jobs:
runner: macos-14
py: 'cpython-3.8'
optimizations: 'debug'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.8'
optimizations: 'lto'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.8'
Expand All @@ -64,10 +60,6 @@ jobs:
runner: macos-14
py: 'cpython-3.9'
optimizations: 'debug'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.9'
optimizations: 'lto'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.9'
Expand All @@ -81,10 +73,6 @@ jobs:
runner: macos-14
py: 'cpython-3.10'
optimizations: 'debug'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.10'
optimizations: 'lto'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.10'
Expand All @@ -98,10 +86,6 @@ jobs:
runner: macos-14
py: 'cpython-3.11'
optimizations: 'debug'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.11'
optimizations: 'lto'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.11'
Expand All @@ -115,10 +99,6 @@ jobs:
runner: macos-14
py: 'cpython-3.12'
optimizations: 'debug'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.12'
optimizations: 'lto'
- target_triple: 'aarch64-apple-darwin'
runner: macos-14
py: 'cpython-3.12'
Expand All @@ -135,10 +115,6 @@ jobs:
runner: macos-13
py: 'cpython-3.8'
optimizations: 'debug'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.8'
optimizations: 'lto'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.8'
Expand All @@ -152,10 +128,6 @@ jobs:
runner: macos-13
py: 'cpython-3.9'
optimizations: 'debug'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.9'
optimizations: 'lto'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.9'
Expand All @@ -169,10 +141,6 @@ jobs:
runner: macos-13
py: 'cpython-3.10'
optimizations: 'debug'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.10'
optimizations: 'lto'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.10'
Expand All @@ -186,10 +154,6 @@ jobs:
runner: macos-13
py: 'cpython-3.11'
optimizations: 'debug'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.11'
optimizations: 'lto'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.11'
Expand All @@ -203,10 +167,6 @@ jobs:
runner: macos-13
py: 'cpython-3.12'
optimizations: 'debug'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.12'
optimizations: 'lto'
- target_triple: 'x86_64-apple-darwin'
runner: macos-13
py: 'cpython-3.12'
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,6 @@ jobs:
py: 'cpython-3.8'
optimizations: 'debug'
run: true
- target_triple: 'x86_64-unknown-linux-gnu'
py: 'cpython-3.8'
optimizations: 'lto'
run: true
- target_triple: 'x86_64-unknown-linux-gnu'
py: 'cpython-3.8'
optimizations: 'pgo'
Expand All @@ -437,10 +433,6 @@ jobs:
py: 'cpython-3.9'
optimizations: 'debug'
run: true
- target_triple: 'x86_64-unknown-linux-gnu'
py: 'cpython-3.9'
optimizations: 'lto'
run: true
- target_triple: 'x86_64-unknown-linux-gnu'
py: 'cpython-3.9'
optimizations: 'pgo'
Expand All @@ -454,10 +446,6 @@ jobs:
py: 'cpython-3.10'
optimizations: 'debug'
run: true
- target_triple: 'x86_64-unknown-linux-gnu'
py: 'cpython-3.10'
optimizations: 'lto'
run: true
- target_triple: 'x86_64-unknown-linux-gnu'
py: 'cpython-3.10'
optimizations: 'pgo'
Expand All @@ -471,10 +459,6 @@ jobs:
py: 'cpython-3.11'
optimizations: 'debug'
run: true
- target_triple: 'x86_64-unknown-linux-gnu'
py: 'cpython-3.11'
optimizations: 'lto'
run: true
- target_triple: 'x86_64-unknown-linux-gnu'
py: 'cpython-3.11'
optimizations: 'pgo'
Expand All @@ -488,10 +472,6 @@ jobs:
py: 'cpython-3.12'
optimizations: 'debug'
run: true
- target_triple: 'x86_64-unknown-linux-gnu'
py: 'cpython-3.12'
optimizations: 'lto'
run: true
- target_triple: 'x86_64-unknown-linux-gnu'
py: 'cpython-3.12'
optimizations: 'pgo'
Expand All @@ -505,10 +485,6 @@ jobs:
py: 'cpython-3.9'
optimizations: 'debug'
run: true
- target_triple: 'x86_64_v2-unknown-linux-gnu'
py: 'cpython-3.9'
optimizations: 'lto'
run: true
- target_triple: 'x86_64_v2-unknown-linux-gnu'
py: 'cpython-3.9'
optimizations: 'pgo'
Expand All @@ -522,10 +498,6 @@ jobs:
py: 'cpython-3.10'
optimizations: 'debug'
run: true
- target_triple: 'x86_64_v2-unknown-linux-gnu'
py: 'cpython-3.10'
optimizations: 'lto'
run: true
- target_triple: 'x86_64_v2-unknown-linux-gnu'
py: 'cpython-3.10'
optimizations: 'pgo'
Expand All @@ -539,10 +511,6 @@ jobs:
py: 'cpython-3.11'
optimizations: 'debug'
run: true
- target_triple: 'x86_64_v2-unknown-linux-gnu'
py: 'cpython-3.11'
optimizations: 'lto'
run: true
- target_triple: 'x86_64_v2-unknown-linux-gnu'
py: 'cpython-3.11'
optimizations: 'pgo'
Expand All @@ -556,10 +524,6 @@ jobs:
py: 'cpython-3.12'
optimizations: 'debug'
run: true
- target_triple: 'x86_64_v2-unknown-linux-gnu'
py: 'cpython-3.12'
optimizations: 'lto'
run: true
- target_triple: 'x86_64_v2-unknown-linux-gnu'
py: 'cpython-3.12'
optimizations: 'pgo'
Expand All @@ -573,10 +537,6 @@ jobs:
py: 'cpython-3.9'
optimizations: 'debug'
run: true
- target_triple: 'x86_64_v3-unknown-linux-gnu'
py: 'cpython-3.9'
optimizations: 'lto'
run: true
- target_triple: 'x86_64_v3-unknown-linux-gnu'
py: 'cpython-3.9'
optimizations: 'pgo'
Expand All @@ -590,10 +550,6 @@ jobs:
py: 'cpython-3.10'
optimizations: 'debug'
run: true
- target_triple: 'x86_64_v3-unknown-linux-gnu'
py: 'cpython-3.10'
optimizations: 'lto'
run: true
- target_triple: 'x86_64_v3-unknown-linux-gnu'
py: 'cpython-3.10'
optimizations: 'pgo'
Expand All @@ -607,10 +563,6 @@ jobs:
py: 'cpython-3.11'
optimizations: 'debug'
run: true
- target_triple: 'x86_64_v3-unknown-linux-gnu'
py: 'cpython-3.11'
optimizations: 'lto'
run: true
- target_triple: 'x86_64_v3-unknown-linux-gnu'
py: 'cpython-3.11'
optimizations: 'pgo'
Expand All @@ -624,10 +576,6 @@ jobs:
py: 'cpython-3.12'
optimizations: 'debug'
run: true
- target_triple: 'x86_64_v3-unknown-linux-gnu'
py: 'cpython-3.12'
optimizations: 'lto'
run: true
- target_triple: 'x86_64_v3-unknown-linux-gnu'
py: 'cpython-3.12'
optimizations: 'pgo'
Expand Down
4 changes: 2 additions & 2 deletions src/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub static RELEASE_TRIPLES: Lazy<BTreeMap<&'static str, TripleRelease>> = Lazy::
let mut h = BTreeMap::new();

// macOS.
let macos_suffixes = vec!["debug", "lto", "pgo", "pgo+lto"];
let macos_suffixes = vec!["debug", "pgo", "pgo+lto"];
h.insert(
"aarch64-apple-darwin",
TripleRelease {
Expand Down Expand Up @@ -84,7 +84,7 @@ pub static RELEASE_TRIPLES: Lazy<BTreeMap<&'static str, TripleRelease>> = Lazy::
);

// Linux.
let linux_suffixes_pgo = vec!["debug", "lto", "pgo", "pgo+lto"];
let linux_suffixes_pgo = vec!["debug", "pgo", "pgo+lto"];
let linux_suffixes_nopgo = vec!["debug", "lto", "noopt"];

h.insert(
Expand Down

0 comments on commit 93c3028

Please sign in to comment.