forked from MegaGlest/megaglest-source
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows/cmake.yml:add tests for recent gcc versions;migrate to chec…
…koutv3 (MegaGlest#250) * workflows/cmake.yml:test on Ubuntu Jammy (22.04);migrate to checkoutv3 This should also fix MegaGlest#247 * maybe fix ssh link error on Ubuntu Jammy gcc and clang build is failing on Jammy with the message: 'cannot find -lssh: No such file or directory' Basically I added libcurl-openssl-dev to the deps * remove libcurl4-gnutls-dev Trying to correct: The following packages have unmet dependencies: libcurl4-gnutls-dev : Conflicts: libcurl4-openssl-dev but 7.81.0-1ubuntu1.3 is to be installed libcurl4-openssl-dev : Conflicts: libcurl4-gnutls-dev but 7.81.0-1ubuntu1.3 is to be installed E: Unable to correct problems, you have held broken packages. An error occurred while installing build dependencies. * use cmake FindCURL module * for OpenSSL, use include instead of find_package * remove jammy, add gcc-10 and 11 test * revert now-unrelated changes * clean-up * add VERBOSE flag to make * Update .github/workflows/cmake.yml * Update .github/workflows/cmake.yml * use '-f' option from build script to force clang * force dynamic libs with '-d' fixes MegaGlest#251 * mk/linux/setupBuildDeps.sh:fix script so 22.04 is detected *remove vlc deps (not required for the CI) *remove ubuntu-18.04 from the build matrix, see https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/ * revert removal of commented macos jobs * run apt-get update and upgrade * cleanup Prep snapshot section
- Loading branch information
Showing
3 changed files
with
78 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters