Skip to content

Commit

Permalink
Don't upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
awvwgk committed Aug 5, 2021
1 parent 48eee60 commit db00e2b
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ jobs:
- name: Build library
run: ninja -C ${{ env.BUILD_DIR }}

- name: Run unit tests
- name: Run unit tests (meson)
if: ${{ matrix.build == 'meson' }}
run: |
meson test -C ${{ env.BUILD_DIR }} --print-errorlogs --no-rebuild --num-processes 2 -t 2
- name: Run unit tests
- name: Run unit tests (ctest)
if: ${{ matrix.build == 'cmake' }}
run: |
ctest --output-on-failure --parallel 2
Expand All @@ -215,21 +215,21 @@ jobs:
ninja -C ${{ env.BUILD_DIR }} install
echo "MCTC_PREFIX=$PWD/_dist" >> $GITHUB_ENV
- name: Create package
if: ${{ matrix.build == 'meson' }}
run: |
tar cvf ${{ env.OUTPUT }} _dist
xz -T0 ${{ env.OUTPUT }}
echo "MCTC_OUTPUT=${{ env.OUTPUT }}.xz" >> $GITHUB_ENV
env:
OUTPUT: mctc-${{ matrix.compiler }}-${{ matrix.version }}-${{ matrix.os }}.tar

- name: Upload package
if: ${{ matrix.build == 'meson' && matrix.build-type != 'coverage' }}
uses: actions/upload-artifact@v2
with:
name: ${{ env.MCTC_OUTPUT }}
path: ${{ env.MCTC_OUTPUT }}
#- name: Create package
# if: ${{ matrix.build == 'meson' }}
# run: |
# tar cvf ${{ env.OUTPUT }} _dist
# xz -T0 ${{ env.OUTPUT }}
# echo "MCTC_OUTPUT=${{ env.OUTPUT }}.xz" >> $GITHUB_ENV
# env:
# OUTPUT: mctc-${{ matrix.compiler }}-${{ matrix.version }}-${{ matrix.os }}.tar

#- name: Upload package
# if: ${{ matrix.build == 'meson' && matrix.build-type != 'coverage' }}
# uses: actions/upload-artifact@v2
# with:
# name: ${{ env.MCTC_OUTPUT }}
# path: ${{ env.MCTC_OUTPUT }}

- name: Upload coverage report
if: ${{ matrix.build == 'meson' && matrix.build-type == 'coverage' }}
Expand Down

0 comments on commit db00e2b

Please sign in to comment.