Skip to content

Commit

Permalink
added artifacts upload to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
DeaSTL committed Oct 25, 2023
1 parent 7944064 commit e04fb26
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,25 @@ jobs:
working-directory: ${{github.workspace}}
# Build your program with the given configuration
run: make -j32

- name: Zip Artifact
run: |
mkdir ${{github.workspace}}/dist
cp ${{github.workspace}}/build/* ${{github.workspace}}/dist/
tar -czvf cmaker.tar.gz ${{github.workspace}}/dist/
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: cmaker-artifact
path: ${{github.workspace}}/dist/cmaker.tar.gz

- name: BuildTest
working-directory: ${{github.workspace}}
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: cmake -DCMAKE_BUILD_TYPE=Test ./ && make -j32

- name: RunTest
working-directory: ${{github.workspace}}
run: ./build/cmaker
Expand Down

0 comments on commit e04fb26

Please sign in to comment.