Skip to content

Commit

Permalink
cleanup Prep snapshot section
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Aug 20, 2022
1 parent 6548ce4 commit c6aad33
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,6 @@ jobs:
fi
mk/linux/build-mg.sh -m -d ${EXTRA_OPTS}
make -C mk/linux/build -j$(nproc) VERBOSE=1
- name: Prepare Snapshot
if: ${{ matrix.compiler == 'gcc' && matrix.os == 'ubuntu-20.04' }}
run: |
cp mk/shared/*.ini mk/linux/
strip -g mk/linux/megaglest mk/linux/megaglest_editor mk/linux/megaglest_g3dviewer
- name: Create Mega Glest Snapshot
if: ${{ matrix.compiler == 'gcc' && matrix.os == 'ubuntu-20.04' }}
uses: actions/upload-artifact@v2
with:
name: megaglest-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.compiler }}
path: |
mk/linux/megaglest
mk/linux/megaglest_editor
mk/linux/megaglest_g3dviewer
mk/linux/*.ini
!mk/linux/glest-dev.ini
build-linux-other:
strategy:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Make Snapshot
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [ develop ]

# The artifact only runs on the same distro that it was built on.
# TODO: make AppImage instead
jobs:
make-snapshot:
strategy:
fail-fast: false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Get dependencies
run: |
sudo apt-get update && sudo apt-get upgrade
sudo mk/linux/setupBuildDeps.sh
- name: Build
run: |
mk/linux/build-mg.sh -m
make -C mk/linux/build -j$(nproc) VERBOSE=1
- name: Prepare Snapshot
run: |
cp mk/shared/*.ini mk/linux/
strip -g mk/linux/megaglest mk/linux/megaglest_editor mk/linux/megaglest_g3dviewer
- name: Create Mega Glest Snapshot
uses: actions/upload-artifact@v2
with:
name: megaglest-x64-ubuntu-20.04-gcc
path: |
mk/linux/megaglest
mk/linux/megaglest_editor
mk/linux/megaglest_g3dviewer
mk/linux/*.ini
!mk/linux/glest-dev.ini

0 comments on commit c6aad33

Please sign in to comment.