Attempt to fix github actions #767
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build | |
uses: docker/build-push-action@v3 | |
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@v3 | |
with: | |
name: binaries | |
path: build/*.fw |