From 1ebae714221cf36fca75bcbfa9627cddb1c9da87 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 31 May 2022 14:55:13 +0100 Subject: [PATCH] Add CI config --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d244683 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + branches: + - "*" + pull_request: + +jobs: + docker: + runs-on: ubuntu-latest + strategy: + matrix: + platform: [linux/386, linux/amd64, linux/arm64/v8] + steps: + - uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Build containers + uses: docker/build-push-action@v2 + with: + platforms: ${{ matrix.platform }} + load: true + + - name: Show image info + run: docker images + + build: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install compilers + run: sudo apt install build-essential + + - name: compile + run: make