Skip to content

Commit

Permalink
Changed build scripts: Only one source artifact, and ci skip support (#…
Browse files Browse the repository at this point in the history
…1620)

* Changed build scripts: Only one source artifact, and ci skip support

* Capital **D**

Co-authored-by: Semphris <[email protected]>
  • Loading branch information
Semphriss and Semphris authored Dec 27, 2020
1 parent 1953e47 commit d3dfa9a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .ci_scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ if [ "$OS_NAME" = "macos-latest" ] && [ "$PACKAGE" = "ON" ]; then
cpack -G Bundle;
fi

if [ "$OS_NAME" = "ubuntu-latest" ] && [ "$PACKAGE" = "ON" ]; then
# make only one source package
if [ "$OS_NAME" = "ubuntu-latest" ] && [ "$COMPILER_NAME" = "gcc" ] && [ "$BUILD_NAME" = "Debug" ] && [ "$PACKAGE" = "ON" ]; then
cpack --config CPackSourceConfig.cmake -G TGZ;
fi

if [ "$OS_NAME" = "ubuntu-latest" ] && [ "$PACKAGE" = "ON" ]; then
../.ci_scripts/build_appimage.sh
#extract built appimages for uploading
# extract built appimages for uploading
mv ~/out/* .
fi

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
# TODO the glbinding build
jobs:
build-supertux:
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -89,6 +91,8 @@ jobs:
- name: Package
env:
OS_NAME: ${{ matrix.os }}
COMPILER_NAME: ${{ matrix.compiler }}
BUILD_NAME: ${{ matrix.build_type }}
PACKAGE: 'ON'
working-directory: build
run: ../.ci_scripts/package.sh
Expand All @@ -100,7 +104,7 @@ jobs:
if-no-files-found: ignore
- uses: actions/upload-artifact@v2
with:
name: "${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.build_type }}-source"
name: "source"
path: build/upload/*.tar.gz
if-no-files-found: ignore
- uses: actions/upload-artifact@v2
Expand Down

0 comments on commit d3dfa9a

Please sign in to comment.