aarch64.yml 1.25 KB
Newer Older
Stefan Lankes's avatar
Stefan Lankes committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
name: Build aarch64

on:
  push:
  pull_request:
    branches:
      - master
  schedule:
    - cron: '0 0 * * 6'

jobs:
  build:

    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
18
        os: [ubuntu-latest, macOS-latest]
Stefan Lankes's avatar
Stefan Lankes committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
        rust: [nightly]
        include:
          - os: macOS-latest
            rust: 'nightly'
            components: 'rust-src, llvm-tools-preview'
            targets: 'aarch64-apple-darwin'
          - os: ubuntu-latest
            rust: 'nightly'
            components: 'rust-src, llvm-tools-preview'
            targets: 'aarch64-unknown-linux-gnu'

    steps:
    - uses: hecrj/setup-rust-action@v1
      with: 
         rust-version: ${{ matrix.rust }}
         components: ${{ matrix.components || '' }}
         targets: ${{ matrix.targets || '' }}
    - uses: actions/checkout@v1
      with:
         submodules: true
    - name: Check Cargo availability
      run: cargo --version
41
42
    - name: Install qemu (apt)
      run: sudo apt-get update --fix-missing && sudo apt-get install qemu-system-aarch64
Stefan Lankes's avatar
Stefan Lankes committed
43
      if: ${{ matrix.os == 'ubuntu-latest' }}
44
    - name: Install qemu (macos)
Stefan Lankes's avatar
Stefan Lankes committed
45
      run: |
46
          brew install qemu
Stefan Lankes's avatar
Stefan Lankes committed
47
48
49
      if: ${{ matrix.os == 'macOS-latest' }}
    - name: Build loader (unix)
      run: make arch=aarch64