25 lines
598 B
YAML
25 lines
598 B
YAML
name: Push
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: CI
|
|
runs-on: podman
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Ensure all files were formatted as per gofmt
|
|
run: |
|
|
[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]
|
|
|
|
- name: Build Linux kernel
|
|
run: |
|
|
GOPROXY=direct CGO_ENABLED=0 GOBIN=$PWD/_build go install github.com/gokrazy/autoupdate/cmd/gokr-rebuild-kernel@latest
|
|
chown -R podman:podman .
|
|
su podman bash -c '(cd _build && ./gokr-rebuild-kernel)'
|