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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_job:
# The host should always be linux
runs-on: ubuntu-18.04
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
services:
# Label used to access the service container
redis:
# Docker Hub image
image: tdengine/tdengine:2.4.0.16
env:
TAOS_FQDN: localhost
ports:
- 6030-6050
- 6030-6050/udp
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache multiple paths
uses: actions/cache@v3
with:
path: |
./rustup
./.cargo
./target
key: "cargo-aarch64"
- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
with:
arch: aarch64
distro: ubuntu18.04
dockerRunArgs: --privileged
# Not required, but speeds up builds by storing container images in
# a GitHub package registry.
githubToken: ${{ github.token }}
# Set an output parameter `uname` for use in subsequent steps
run: |
uname -a
./.ci/test.sh
echo ::set-output name=uname::$(uname -a)
- name: Build tools
run: |
uname -a