Skip to content

Commit 03c654a

Browse files
authored
ci(fix): Workflow actions updates and fix arm64 wheels not included in release (#1392)
* Update test.yaml Bump actions/checkout@v3 to v4 Bump action/setup-python@v4 to v5 * Update test-pypi.yaml Bum actions/setup-python@v4 to v5 * Update build-and-release.yaml Bump softprops/action-gh-release@v1 to v2 Bump actions/checkout@v3 to v4 Bump actions/setup-python@v3 to v5 * Update publish.yaml Bump actions/checkout@v3 to v4 Bump actions/sertup-python@v4 to v5 * Update publish-to-test.yaml Bump actions/checkout@v3 to v4 Bump actions/setup-python @v4 to v5 * Update test-pypi.yaml Add Python 3.12 * Update build-and-release.yaml * Update build-docker.yaml Bump docker/setup-qemu-action@v2 to v3 Bump docker/setup-buildx-action@v2 to v3 * Update build-and-release.yaml * Update build-and-release.yaml
1 parent 0c3bc4b commit 03c654a

File tree

6 files changed

+33
-34
lines changed

6 files changed

+33
-34
lines changed

.github/workflows/build-and-release.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
os: [ubuntu-20.04, windows-2019, macos-11]
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
with:
1919
submodules: "recursive"
2020

2121
# Used to host cibuildwheel
22-
- uses: actions/setup-python@v3
22+
- uses: actions/setup-python@v5
2323
with:
2424
python-version: "3.8"
2525

@@ -62,23 +62,22 @@ jobs:
6262
CIBW_ARCHS: "aarch64"
6363
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*"
6464
with:
65-
output-dir: wheelhouse/
65+
output-dir: wheelhouse
6666

6767
- name: Upload wheels as artifacts
68-
uses: actions/upload-artifact@v4
68+
uses: actions/upload-artifact@v3
6969
with:
70-
name: wheels-${{ matrix.version }}
71-
path: wheelhouse/*.whl
70+
path: ./wheelhouse/*.whl
7271

7372
build_sdist:
7473
name: Build source distribution
7574
runs-on: ubuntu-latest
7675

7776
steps:
78-
- uses: actions/checkout@v3
77+
- uses: actions/checkout@v4
7978
with:
8079
submodules: "recursive"
81-
- uses: actions/setup-python@v3
80+
- uses: actions/setup-python@v5
8281
with:
8382
python-version: "3.8"
8483
- name: Install dependencies
@@ -102,8 +101,8 @@ jobs:
102101
with:
103102
name: artifact
104103
path: dist
105-
- uses: softprops/action-gh-release@v1
104+
- uses: softprops/action-gh-release@v2
106105
with:
107106
files: dist/*
108107
env:
109-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-docker.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
submodules: "recursive"
1818

1919
- name: Set up QEMU
20-
uses: docker/setup-qemu-action@v2
20+
uses: docker/setup-qemu-action@v3
2121

2222
- name: Set up Docker Buildx
23-
uses: docker/setup-buildx-action@v2
23+
uses: docker/setup-buildx-action@v3
2424

2525
- name: Login to GitHub Container Registry
2626
uses: docker/login-action@v3

.github/workflows/publish-to-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
with:
2121
submodules: "recursive"
2222
- name: Set up Python
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: "3.8"
2626
- name: Append Dev Version to __version__
@@ -40,4 +40,4 @@ jobs:
4040
uses: pypa/gh-action-pypi-publish@release/v1
4141
with:
4242
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
43-
repository-url: https://test.pypi.org/legacy/
43+
repository-url: https://test.pypi.org/legacy/

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
submodules: "recursive"
1616
- name: Set up Python
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.8"
2020
- name: Install dependencies

.github/workflows/test-pypi.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
1212

1313
steps:
1414
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v5
1616
with:
1717
python-version: ${{ matrix.python-version }}
1818
- name: Install dependencies
@@ -28,11 +28,11 @@ jobs:
2828
runs-on: windows-latest
2929
strategy:
3030
matrix:
31-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
31+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
3232

3333
steps:
3434
- name: Set up Python ${{ matrix.python-version }}
35-
uses: actions/setup-python@v4
35+
uses: actions/setup-python@v5
3636
with:
3737
python-version: ${{ matrix.python-version }}
3838
- name: Install dependencies
@@ -48,11 +48,11 @@ jobs:
4848
runs-on: macos-latest
4949
strategy:
5050
matrix:
51-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
51+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
5252

5353
steps:
5454
- name: Set up Python ${{ matrix.python-version }}
55-
uses: actions/setup-python@v4
55+
uses: actions/setup-python@v5
5656
with:
5757
python-version: ${{ matrix.python-version }}
5858
- name: Install dependencies
@@ -61,4 +61,4 @@ jobs:
6161
python3 -m pip install --verbose llama-cpp-python[all]
6262
- name: Test with pytest
6363
run: |
64-
python3 -c "import llama_cpp"
64+
python3 -c "import llama_cpp"

.github/workflows/test.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
submodules: "recursive"
2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v5
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Install dependencies
@@ -40,11 +40,11 @@ jobs:
4040
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
4141

4242
steps:
43-
- uses: actions/checkout@v3
43+
- uses: actions/checkout@v4
4444
with:
4545
submodules: "recursive"
4646
- name: Set up Python ${{ matrix.python-version }}
47-
uses: actions/setup-python@v4
47+
uses: actions/setup-python@v5
4848
with:
4949
python-version: ${{ matrix.python-version }}
5050
- name: Install dependencies
@@ -63,11 +63,11 @@ jobs:
6363
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
6464

6565
steps:
66-
- uses: actions/checkout@v3
66+
- uses: actions/checkout@v4
6767
with:
6868
submodules: "recursive"
6969
- name: Set up Python ${{ matrix.python-version }}
70-
uses: actions/setup-python@v4
70+
uses: actions/setup-python@v5
7171
with:
7272
python-version: ${{ matrix.python-version }}
7373
- name: Install dependencies
@@ -83,11 +83,11 @@ jobs:
8383
# runs-on: ubuntu-latest
8484

8585
# steps:
86-
# - uses: actions/checkout@v3
86+
# - uses: actions/checkout@v4
8787
# with:
8888
# submodules: "recursive"
8989
# - name: Set up Python 3.8
90-
# uses: actions/setup-python@v4
90+
# uses: actions/setup-python@v5
9191
# with:
9292
# python-version: "3.8"
9393
# - name: Set up OpenCL & CLBlast
@@ -110,11 +110,11 @@ jobs:
110110
runs-on: macos-13
111111

112112
steps:
113-
- uses: actions/checkout@v3
113+
- uses: actions/checkout@v4
114114
with:
115115
submodules: "recursive"
116116
- name: Set up Python 3.8
117-
uses: actions/setup-python@v4
117+
uses: actions/setup-python@v5
118118
with:
119119
python-version: "3.8"
120120
- name: Install dependencies

0 commit comments

Comments
 (0)