Skip to content

Commit 14c6340

Browse files
author
rocky
committed
Try custom CI for this branch
1 parent 44063e0 commit 14c6340

3 files changed

Lines changed: 65 additions & 37 deletions

File tree

.github/workflows/macosx.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: xasm (osx)
2+
3+
on:
4+
push:
5+
branches: [ python-3.6-to-3.10 ]
6+
pull_request:
7+
branches: [ python-3.6-to-3.10 ]
8+
9+
jobs:
10+
build:
11+
runs-on: macos-latest
12+
strategy:
13+
matrix:
14+
os: [macOS]
15+
python-version: ['3.10']
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
# Install the latest xdis release tarball from GitHub Releases (asset named xdis_36-*.tar.gz)
24+
XDIS_URL=$(curl -s https://api.github.com/repos/rocky/python-xdis/releases/latest \
25+
| python - <<'PY'
26+
import sys, json
27+
j = json.load(sys.stdin)
28+
assets = j.get("assets", [])
29+
for a in assets:
30+
name = a.get("name","")
31+
if name.startswith("xdis_36-") and name.endswith(".tar.gz"):
32+
print(a.get("browser_download_url"))
33+
break
34+
PY
35+
)
36+
if [ -z "$XDIS_URL" ]; then
37+
echo "ERROR: no xdis_36-*.tar.gz asset found on the latest release"; exit 1
38+
fi
39+
python -m pip install "$XDIS_URL"
40+
pip install -r requirements-dev.txt
41+
- name: Test xasm
42+
run: |
43+
make check

.github/workflows/osx.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/ubuntu.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,41 @@ name: xdis (ubuntu)
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ python-3.6-to-3.10 ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ python-3.6-to-3.10 ]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ['3.8', '3.9', '3.10', '3.11']
14+
python-version: ['3.8', '3.9', '3.10']
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies
2222
run: |
23-
# We can comment out after next xdis release
24-
python -m pip install -e git+https://github.com/rocky/python-xdis#egg=xdis
23+
# Install the latest xdis release tarball from GitHub Releases (asset named xdis_36-*.tar.gz)
24+
XDIS_URL=$(curl -s https://api.github.com/repos/rocky/python-xdis/releases/latest \
25+
| python - <<'PY'
26+
import sys, json
27+
j = json.load(sys.stdin)
28+
assets = j.get("assets", [])
29+
for a in assets:
30+
name = a.get("name","")
31+
if name.startswith("xdis_36-") and name.endswith(".tar.gz"):
32+
print(a.get("browser_download_url"))
33+
break
34+
PY
35+
)
36+
if [ -z "$XDIS_URL" ]; then
37+
echo "ERROR: no xdis_36-*.tar.gz asset found on the latest release"; exit 1
38+
fi
39+
python -m pip install "$XDIS_URL"
2540
pip install -e .
2641
pip install -r requirements-dev.txt
2742
- name: Test xasm

0 commit comments

Comments
 (0)