aarch64.yml 1.26 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
41
42
43
44
45
46
47
48
49
        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
    - name: Install qemu/nasm (apt)
      run: sudo apt-get update --fix-missing && sudo apt-get install qemu-system-x86 nasm
      if: ${{ matrix.os == 'ubuntu-latest' }}
    - name: Install qemu/nasm (macos)
      run: |
          brew install qemu nasm
      if: ${{ matrix.os == 'macOS-latest' }}
    - name: Build loader (unix)
      run: make arch=aarch64