From 3e24d2cf847f375ec0bf918cdf22164c3fd91f51 Mon Sep 17 00:00:00 2001 From: Eric Jalal Date: Tue, 20 Feb 2024 13:44:58 +0200 Subject: [PATCH] Select gcc compilter version --- .github/workflows/release.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index efd22c3..e9ca925 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,8 @@ name: Generate Release Notes on: push: + branches: + - main jobs: release: @@ -21,7 +23,16 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + # Some programmers use env matrix but this case it is just two repeated variable and I decided to keep it simple + - name: Set up compiler + run: | + sudo apt-get update + sudo apt-get install -y gcc-10 g++-10 + - name: Build release version + env: + CC: gcc-10 + CXX: g++-10 run: | sudo apt-get install -y cmake cmake . && make @@ -46,5 +57,5 @@ jobs: tag: ${{ steps.tag_version.outputs.new_tag }} name: Release ${{ steps.tag_version.outputs.new_tag }} body: ${{ steps.tag_version.outputs.changelog }} - artifacts: "/usr/src/app/main" + artifacts: "main"