forked from ducalex/retro-go
-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (34 loc) · 1 KB
/
Copy pathci.yml
File metadata and controls
42 lines (34 loc) · 1 KB
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
37
38
39
40
41
42
name: ci
on:
workflow_dispatch: # Start a workflow
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Remove ~18 GiB of preinstalled software to have more disk space during the build
- name: Cleanup runner
run: |
df -h
sudo rm -rf /opt/microsoft /usr/local/.ghcup /usr/local/julia* /usr/share/dotnet /usr/share/swift /usr/lib/llvm*
df -h
- 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