2022-07-27 07:25:09 +00:00
|
|
|
name: build-latest
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
types: [ opened, reopened ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CONTAINER_RUNTIME: docker
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
cancel:
|
|
|
|
runs-on:
|
|
|
|
- ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- name: cancel previous runs
|
|
|
|
uses: styfle/cancel-workflow-action@0.9.1
|
|
|
|
with:
|
|
|
|
all_but_latest: true
|
|
|
|
access_token: ${{ github.token }}
|
|
|
|
|
|
|
|
build-amd64-latest:
|
|
|
|
runs-on:
|
|
|
|
- ubuntu-22.04
|
|
|
|
needs:
|
|
|
|
- cancel
|
|
|
|
steps:
|
|
|
|
- name: clone
|
|
|
|
uses: actions/checkout@v2
|
2022-07-27 07:37:49 +00:00
|
|
|
- name: update apt cache
|
2022-07-27 07:40:36 +00:00
|
|
|
run: sudo apt update --yes
|
2022-07-27 07:33:18 +00:00
|
|
|
- name: upgrade packages
|
2022-07-27 07:40:36 +00:00
|
|
|
run: sudo apt upgrade --yes
|
2022-07-27 07:25:09 +00:00
|
|
|
- name: install build-essential
|
2022-07-27 07:40:36 +00:00
|
|
|
run: sudo apt install --yes build-essential
|
2022-07-27 07:25:09 +00:00
|
|
|
- name: set up docker
|
|
|
|
uses: docker-practice/actions-setup-docker@master
|
|
|
|
- name: build
|
2022-07-27 07:33:18 +00:00
|
|
|
run: make container-image/build/amd64
|