Skip to content

Commit fb61f48

Browse files
committed
Actions: Try and make wheels parts of the repo
1 parent 8442bc2 commit fb61f48

2 files changed

Lines changed: 54 additions & 5 deletions

File tree

.github/workflows/build_wheels.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches:
99
- master
1010

11+
permissions:
12+
contents: write
1113

1214
jobs:
1315
build_wheels:
@@ -16,11 +18,15 @@ jobs:
1618
strategy:
1719
matrix:
1820
# macos-13 is an intel runner, macos-14 is apple silicon
19-
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
21+
# os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
22+
os: [macos-14]
2023

2124
steps:
2225
- uses: actions/checkout@v4
2326

27+
- name: Intermediate
28+
run: git branch -a
29+
2430
- name: Build wheels
2531
uses: pypa/cibuildwheel@v2.23.3
2632
# env:
@@ -31,7 +37,24 @@ jobs:
3137
# output-dir: wheelhouse
3238
# config-file: "{package}/pyproject.toml"
3339

34-
- uses: actions/upload-artifact@v4
35-
with:
36-
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
37-
path: ./wheelhouse/*.whl
40+
# - uses: actions/upload-artifact@v4
41+
# with:
42+
# name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
43+
# path: wheelhouse/*.whl
44+
45+
# # https://stackoverflow.com/questions/58033366/how-to-get-the-current-branch-within-github-actions
46+
# - name: Extract branch name
47+
# shell: bash
48+
# run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
49+
# id: extract_branch
50+
51+
- name: Intermediate
52+
run: git branch -a
53+
54+
- name: Commit
55+
run: |
56+
git config --global user.name 'Wheel bot'
57+
git config --global user.email '<>'
58+
git add wheelhouse/*.whl
59+
git commit -m "Bot: Add built wheels"
60+
git push

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Push commit
2+
3+
on: push
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
report:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Intermediate
15+
run: git branch -a
16+
17+
- name: Create report file
18+
run: date +%s > report.txt
19+
20+
- name: Commit report
21+
run: |
22+
git config --global user.name 'Test Bot'
23+
git config --global user.email '<>'
24+
git add report.txt
25+
git commit -am "Automated report"
26+
git push

0 commit comments

Comments
 (0)