From 14359660795408c562c51a9fc0146ebd3b883edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Bac=C5=82awski?= Date: Sat, 15 Apr 2023 21:38:22 +0200 Subject: [PATCH] Update build system (backported from 72a3f13) --- .github/workflows/default.yml | 19 ++++++++++++++----- Dockerfile | 2 +- build/go.mk | 2 +- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index e489b2f5..995330ca 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -13,10 +13,12 @@ jobs: name: Python Style runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 with: lfs: true - - uses: actions/setup-python@v3 + - name: Setup Python 3.9 + uses: actions/setup-python@v3 with: python-version: 3.9 - name: Install dependencies @@ -31,11 +33,18 @@ jobs: runs-on: ubuntu-latest container: cahirwpz/demoscene:latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 with: lfs: true - - run: make - - uses: actions/upload-artifact@v3 + - name: Setup GoLang + uses: actions/setup-go@v4 + with: + go-version: '>=1.19.0' + - name: Build everything + run: make + - name: Upload artifacts + uses: actions/upload-artifact@v3 with: name: effects path: effects/*/*.adf diff --git a/Dockerfile b/Dockerfile index 5fcfb673..3d9d48fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ FROM debian:bullseye-backports WORKDIR /root -ADD https://github.com/cahirwpz/demoscene-toolchain/releases/download/2022-04-18/demoscene-toolchain.tar.gz \ +ADD https://github.com/cahirwpz/demoscene-toolchain/releases/download/2023-04-15/demoscene-toolchain.tar.gz \ demoscene-toolchain.tar.gz RUN apt-get -q update && apt-get upgrade -y RUN apt-get install -y --no-install-recommends -t bullseye-backports \ diff --git a/build/go.mk b/build/go.mk index 2af5b7b6..f5f89c9b 100644 --- a/build/go.mk +++ b/build/go.mk @@ -1,5 +1,5 @@ all: - go build + go build -buildvcs=false windows: GOOS=windows GOARCH=amd64 go build