-
Notifications
You must be signed in to change notification settings - Fork 314
35 lines (28 loc) · 748 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (28 loc) · 748 Bytes
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
name: ci
on:
workflow_dispatch: # Start a workflow
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v6
with:
context: .
tags: retro-go:latest
cache-from: type=gha
cache-to: type=gha,mode=max
load: true
- name: Extract binaries from docker image
run: |
docker run --rm -v $(pwd)/build:/build retro-go:latest sh -c "cp /app/*.fw /build"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: binaries
path: build/*.fw