Skip to content

Commit bb1ae45

Browse files
committed
No-op Rust change to test build
1 parent e9c5725 commit bb1ae45

File tree

3 files changed

+43
-3
lines changed

3 files changed

+43
-3
lines changed

.github/workflows/apple.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ env:
1414

1515
jobs:
1616
pythonbuild:
17+
if: ${{ needs.generate-matrix.outputs.pythonbuild_changed == 'true' || needs.generate-matrix.outputs.any_builds == 'true' || github.ref == 'refs/heads/main' }}
18+
needs:
19+
- generate-matrix
1720
runs-on: 'macos-13'
1821
steps:
1922
- uses: actions/checkout@v4
@@ -44,6 +47,8 @@ jobs:
4447
runs-on: ubuntu-latest
4548
outputs:
4649
matrix: ${{ steps.set-matrix.outputs.matrix }}
50+
any_builds: ${{ steps.set-matrix.outputs.any_builds }}
51+
pythonbuild_changed: ${{ steps.changed.outputs.pythonbuild_any_changed }}
4752
steps:
4853
- uses: actions/checkout@v4
4954

@@ -64,6 +69,20 @@ jobs:
6469
# Display the matrix for debugging too
6570
cat matrix.json | jq
6671
72+
if jq -e '.include | length > 0' matrix.json > /dev/null; then
73+
# Build matrix has entries
74+
echo "any_builds=true" >> $GITHUB_OUTPUT
75+
else
76+
# Build matrix is empty
77+
echo "any_builds=false" >> $GITHUB_OUTPUT
78+
fi
79+
80+
- uses: tj-actions/changed-files@v45
81+
id: changed
82+
with:
83+
files_yaml: |
84+
pythonbuild:
85+
- "src/*.rs"
6786
build:
6887
needs:
6988
- generate-matrix

.github/workflows/windows.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ env:
1414

1515
jobs:
1616
pythonbuild:
17+
if: ${{ needs.generate-matrix.outputs.pythonbuild_changed == 'true' || needs.generate-matrix.outputs.any_builds == 'true' || github.ref == 'refs/heads/main' }}
18+
needs:
19+
- generate-matrix
1720
runs-on: 'windows-2022'
1821
steps:
1922
- uses: actions/checkout@v4
@@ -44,6 +47,8 @@ jobs:
4447
runs-on: ubuntu-latest
4548
outputs:
4649
matrix: ${{ steps.set-matrix.outputs.matrix }}
50+
any_builds: ${{ steps.set-matrix.outputs.any_builds }}
51+
pythonbuild_changed: ${{ steps.changed.outputs.pythonbuild_any_changed }}
4752
steps:
4853
- uses: actions/checkout@v4
4954

@@ -63,7 +68,22 @@ jobs:
6368
uv run ci-matrix.py --platform windows --labels "${{ steps.get-labels.outputs.labels }}" > matrix.json && echo "matrix=$(cat matrix.json)" >> $GITHUB_OUTPUT
6469
# Display the matrix for debugging too
6570
cat matrix.json | jq
66-
71+
72+
if jq -e '.include | length > 0' matrix.json > /dev/null; then
73+
# Build matrix has entries
74+
echo "any_builds=true" >> $GITHUB_OUTPUT
75+
else
76+
# Build matrix is empty
77+
echo "any_builds=false" >> $GITHUB_OUTPUT
78+
fi
79+
80+
- uses: tj-actions/changed-files@v45
81+
id: changed
82+
with:
83+
files_yaml: |
84+
pythonbuild:
85+
- "src/*.rs"
86+
6787
build:
6888
needs:
6989
- generate-matrix

src/github.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
use std::str::FromStr;
66

7-
use crate::release::{bootstrap_llvm, produce_install_only_stripped};
87
use {
9-
crate::release::{produce_install_only, RELEASE_TRIPLES},
8+
crate::release::{
9+
bootstrap_llvm, produce_install_only, produce_install_only_stripped, RELEASE_TRIPLES,
10+
},
1011
anyhow::{anyhow, Result},
1112
bytes::Bytes,
1213
clap::ArgMatches,

0 commit comments

Comments
 (0)