Skip to content

Commit

Permalink
updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mknaranja committed Dec 16, 2024
1 parent bba9d5b commit 08d4bea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ runs:
shell: bash
run: |
sudo apt-get -qq update
sudo apt-get -qq install gcc-11
sudo apt-get -qq -y install g++-11
sudo apt-get -qq install gcc-12
sudo apt-get -qq -y install g++-12
sudo apt-get -qq -y install lcov
- name: Build
shell:
# ensure that the installed compiler version is used
run: |
export CC=/usr/bin/gcc-11
export CXX=/usr/bin/g++-11
export CC=/usr/bin/gcc-12
export CXX=/usr/bin/g++-12
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DGMGPOLAR_TEST_COVERAGE=ON ..
make -j4
Expand All @@ -23,7 +23,7 @@ runs:
run: |
tar -czf build.tar.gz build
- name: Upload build dir archive
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-cpp-linux-gmgpolar
path: build.tar.gz
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
sudo apt-get -qq -y install lcov
sudo apt-get -qq update
- name: Download build test directory
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.build-artifact }}
- name: extract build archive
Expand All @@ -37,14 +37,14 @@ runs:
cd build
cmake --build . --target coverage/fast
- name: Upload test report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-report
path: build/tests/testreport.xml
if-no-files-found: error
retention-days: 3
- name: Upload coverage reports
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-coverage-reports
path: |
Expand Down

0 comments on commit 08d4bea

Please sign in to comment.