Skip to content

Commit dc72248

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

File tree

3 files changed

+46
-37
lines changed

3 files changed

+46
-37
lines changed

.github/workflows/macosx.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 -c "import sys,json; j=json.load(sys.stdin); assets=j.get('assets',[]); print(next((a.get('browser_download_url') for a in assets if a.get('name','').startswith('xdis_36-') and a.get('name','').endswith('.tar.gz')), ''))")
26+
if [ -z "$XDIS_URL" ]; then
27+
echo "ERROR: no xdis_36-*.tar.gz asset found on the latest release"; exit 1
28+
fi
29+
python -m pip install "$XDIS_URL"
30+
pip install -e .
31+
pip install -r requirements-dev.txt
32+
- name: Test xasm
33+
run: |
34+
make check

.github/workflows/osx.yml

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

.github/workflows/ubuntu.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,31 @@ 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 -c "import sys,json; j=json.load(sys.stdin); assets=j.get('assets',[]); print(next((a.get('browser_download_url') for a in assets if a.get('name','').startswith('xdis_36-') and a.get('name','').endswith('.tar.gz')), ''))")
26+
if [ -z "$XDIS_URL" ]; then
27+
echo "ERROR: no xdis_36-*.tar.gz asset found on the latest release"; exit 1
28+
fi
29+
python -m pip install "$XDIS_URL"
2530
pip install -e .
2631
pip install -r requirements-dev.txt
2732
- name: Test xasm

0 commit comments

Comments
 (0)