-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.08 KB
/
build.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
34
35
36
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
concurrency: concurrency-group-to-prevent-cache-race
steps:
- uses: docker/setup-qemu-action@v2.0.0
with:
platforms: arm64
- uses: docker/login-action@v2.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3.0.2
with:
lfs: true
persist-credentials: false
- name: Install Earthly
uses: ./.github/actions/install-earthly
- run: earthly --artifact --allow-privileged --ci +build/\* --XSA_FILE=design_1_wrapper.xsa /tmp/build/
env:
EARTHLY_MAX_REMOTE_CACHE: ${{ github.ref == 'refs/heads/main' }}
EARTHLY_PUSH: ${{ github.ref == 'refs/heads/main' }}
EARTHLY_REMOTE_CACHE: ghcr.io/tosainu/earthly-zynqmp-example:build-cache
FORCE_COLOR: true
- uses: actions/upload-artifact@v3.1.0
with:
name: build
path: /tmp/build