Skip to content

Commit

Permalink
Select gcc compilter version
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Jalal committed Feb 20, 2024
1 parent 2d06453 commit b54a433
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Generate Release Notes

on:
push:
branches:
- main

jobs:
release:
Expand All @@ -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
Expand All @@ -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"

0 comments on commit b54a433

Please sign in to comment.