Skip to content

Commit

Permalink
upload after build not before
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Mar 30, 2024
1 parent 024710c commit 31dccb7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,6 @@ jobs:
run: cmake -S ${{ matrix.src-dir || '.' }} -B ${{ matrix.build-dir || 'build' }} ${{ matrix.cmake-args }} -D CMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }}
env:
CFLAGS: ${{ matrix.cflags }}
- name: Upload Artifact (Open Watcom)
if: matrix.compiler == 'watcom' && matrix.artifact != ''
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: ${{ github.workspace }}/build/*
overwrite: true

- name: Generate project files
if: matrix.compiler != 'watcom'
run: cmake -S ${{ matrix.src-dir || '.' }} -B ${{ matrix.build-dir || 'build' }} ${{ matrix.cmake-args }} -D CMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }}
Expand All @@ -174,6 +166,14 @@ jobs:
- name: Compile source code
run: cmake --build ${{ matrix.build-dir || 'build' }} --config ${{ matrix.build-config || 'Release' }}

- name: Upload Artifact (Open Watcom)
if: matrix.compiler == 'watcom' && matrix.artifact != ''
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: build
overwrite: true

- name: Run test cases (Open Watcom)
if: matrix.compiler == 'watcom' && matrix.watcom-test
run: ctest -C Release --output-on-failure --max-width 120
Expand Down

0 comments on commit 31dccb7

Please sign in to comment.