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 2a201f2 commit 90f8a0a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Generate Release Notes
name: Generate Release

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 90f8a0a

Please sign in to comment.