From 6c7c32c2a9ec4327f6b3b413ec3453be5f69c5e5 Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Sat, 7 Dec 2019 22:17:03 +0100 Subject: [PATCH] Create "Inject version" step for Linux release job --- .github/workflows/linux.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index c6c7977d..75563cc8 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -49,18 +49,19 @@ jobs: run: sudo apt-get install -y tree $(./scripts/list-build-dependencies.sh -m apt -c gcc) - name: Log environment run: ./scripts/log-env.sh - - name: Build + - name: Inject version string run: | set -x export VERSION=$(git describe --abbrev=4) sed -i "s/AC_INIT(dosbox,git)/AC_INIT(dosbox,$VERSION)/" configure.ac + echo ::set-env name=VERSION::$VERSION + - name: Build + run: | + set -x ./autogen.sh ./configure CXXFLAGS="-O3 -DNDEBUG" make -j "$(nproc)" strip src/dosbox - # Inject variable into the surrounding env in workflow, - # otherwise it won't be usable in the following steps. - echo ::set-env name=VERSION::$VERSION - name: Package run: | set -x