summaryrefslogtreecommitdiff
path: root/.github/workflows/ubuntu_arm64.yml
blob: 05d6e6f002ad33c198f4dede8585f4fbaebb20e2 (plain)
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
name: Ubuntu (Arm64)

on:
  pull_request:
  push:
  release:
    types: [published]

jobs:
  build:
    runs-on: ubuntu-latest

    concurrency:
        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-UbuntuArm64
        cancel-in-progress: true
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: true

      - run: |
          docker run --rm --privileged multiarch/qemu-user-static:register --reset

      - uses: docker://multiarch/ubuntu-core:arm64-bionic
        with:
          args: >
            bash -c
            "uname -a &&
            apt update &&
            cd /github/workspace &&
            ./scripts/get.sh __local__ &&
            source ~/.xmake/profile &&
            export XMAKE_ROOT=y &&
            export XMAKE_TMPDIR=/tmp &&
            xmake lua -v -D tests/run.lua && xrepo --version"