-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update scripts, packaging, and example mod for playtest-20201213.
- Loading branch information
Showing
26 changed files
with
565 additions
and
624 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
linux-mono: | ||
name: Linux (mono) | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Clone Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare Environment | ||
run: | | ||
. mod.config; | ||
awk '/\r$$/ { exit(1); }' mod.config || (printf "Invalid mod.config format. File must be saved using unix-style (LF, not CRLF or CR) line endings.\n"; exit 1); | ||
- name: Check Code | ||
run: | | ||
make check | ||
make check-packaging-scripts | ||
- name: Check Mod | ||
run: | | ||
sudo apt-get install lua5.1 | ||
make check-scripts | ||
make test | ||
windows: | ||
name: Windows (Framework 4.7) | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- name: Clone Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check Code | ||
shell: powershell | ||
run: | | ||
dotnet nuget locals all --clear | ||
.\make.ps1 check | ||
- name: Check Mods | ||
run: | | ||
chocolatey install lua --version 5.1.5.52 | ||
$ENV:Path = $ENV:Path + ";C:\Program Files (x86)\Lua\5.1\" | ||
.\make.ps1 check-scripts | ||
.\make.ps1 test |
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,93 @@ | ||
name: Release Packaging | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
linux: | ||
name: Linux AppImages | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Clone Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare Environment | ||
run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> ${GITHUB_ENV} | ||
|
||
- name: Package AppImage | ||
run: | | ||
make engine | ||
mkdir -p build/linux | ||
./packaging/linux/buildpackage.sh "${GIT_TAG}" "${PWD}/build/linux" | ||
- name: Upload Packages | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true | ||
file: build/linux/* | ||
|
||
macos: | ||
name: macOS Disk Images | ||
runs-on: macos-10.15 | ||
|
||
steps: | ||
- name: Clone Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare Environment | ||
run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> ${GITHUB_ENV} | ||
|
||
- name: Package Disk Images | ||
env: | ||
MACOS_DEVELOPER_IDENTITY: ${{ secrets.MACOS_DEVELOPER_IDENTITY }} | ||
MACOS_DEVELOPER_CERTIFICATE_BASE64: ${{ secrets.MACOS_DEVELOPER_CERTIFICATE_BASE64 }} | ||
MACOS_DEVELOPER_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_DEVELOPER_CERTIFICATE_PASSWORD }} | ||
MACOS_DEVELOPER_USERNAME: ${{ secrets.MACOS_DEVELOPER_USERNAME }} | ||
MACOS_DEVELOPER_PASSWORD: ${{ secrets.MACOS_DEVELOPER_PASSWORD }} | ||
run: | | ||
make engine | ||
mkdir -p build/macos | ||
./packaging/macos/buildpackage.sh "${GIT_TAG}" "${PWD}/build/macos" | ||
- name: Upload Packages | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true | ||
file: build/macos/* | ||
|
||
windows: | ||
name: Windows Installers | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Clone Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare Environment | ||
run: | | ||
echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> ${GITHUB_ENV} | ||
sudo apt install nsis | ||
- name: Package Installers | ||
run: | | ||
make engine | ||
mkdir -p build/windows | ||
./packaging/windows/buildpackage.sh "${GIT_TAG}" "${PWD}/build/windows" | ||
- name: Upload Packages | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true | ||
file: build/windows/* |
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.