forked from htm-community/htm.core
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 996 Bytes
/
arm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: ARM64
on:
# run every day of the week at 02:00
schedule:
- cron: 0 2 * * *
jobs:
build-arm64-docker:
name: Build for ARM64 on Docker
runs-on: ubuntu-20.04
if: (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')) || github.event_name == 'schedule' # tag or schedule
steps:
- name: Install docker # bug in ubuntu, conflicts with docker.io
run: |
sudo apt-get update
sudo apt-get remove --purge -y moby-engine moby-cli
sudo apt-get install -y qemu-user-static docker.io
- uses: actions/checkout@v2
- name: ARM64 build
run: |
sudo docker build -t htm-arm64-docker --build-arg arch=arm64 .
- name: Tests
run: |
sudo docker run htm-arm64-docker python setup.py test
- name: Copy files from docker
run: |
sudo docker cp `sudo docker ps -alq`:/usr/local/src/htm.core/dist dist #TODO the `command` is not 100% reliable, replace with some name/id
ls dist