Skip to content

Commit 628bc03

Browse files
committed
update action
1 parent 7aed353 commit 628bc03

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: pi
66

77
jobs:
8-
main:
8+
build-amd64:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Set up QEMU
@@ -27,4 +27,27 @@ jobs:
2727
- name: Show Python version
2828
run: python -c "import sys; print(sys.version)"
2929
- name: Build and push
30-
run: tools/push -p linux/amd64 -p linux/arm64 utils xud
30+
run: tools/push -p linux/amd64 utils xud
31+
build-arm64:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Set up QEMU
35+
uses: docker/setup-qemu-action@v1
36+
- name: Set up Docker Buildx
37+
uses: docker/setup-buildx-action@v1
38+
- name: Login to DockerHub
39+
uses: docker/login-action@v1
40+
with:
41+
username: ${{ secrets.DOCKERHUB_USERNAME }}
42+
password: ${{ secrets.DOCKERHUB_TOKEN }}
43+
- name: Checkout
44+
uses: actions/checkout@v2
45+
- name: Set up Python 3.9
46+
uses: actions/setup-python@v2
47+
with:
48+
python-version: '3.9'
49+
architecture: 'x64'
50+
- name: Show Python version
51+
run: python -c "import sys; print(sys.version)"
52+
- name: Build and push
53+
run: tools/push -p linux/arm64 utils xud

0 commit comments

Comments
 (0)