-
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.
* Github actions * Debug fix * fix #2
- Loading branch information
Showing
7 changed files
with
115 additions
and
16 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 |
---|---|---|
|
@@ -4,10 +4,6 @@ on: | |
branches: | ||
- main | ||
- master | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
jobs: | ||
build: | ||
name: Deploy docs | ||
|
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,45 @@ | ||
name: Ubuntu - Pre Release(latest) | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
ubuntu-pre-release: | ||
name: "Ubuntu - Pre Release(latest)" | ||
runs-on: "ubuntu-latest" | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Download source | ||
uses: actions/checkout@v2 | ||
- name: Install Crystal | ||
uses: oprypin/install-crystal@v1 | ||
- name: Install Crystal libs | ||
run: shards install | ||
- name: raylib-cr post-install | ||
run: sh ./lib/raylib-cr/rsrc/install-lib.sh | ||
- name: Build map-viewer | ||
run: shards build --release map-viewer | ||
- name: Zip files | ||
run: zip -r ubuntu-map-viewer.zip bin/** | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
prerelease: true | ||
tag: "latest" | ||
artifacts: "ubuntu-map-viewer.zip" | ||
- name: Cleanup | ||
run: rm -rf bin | ||
- name: Build wad-viewer | ||
run: shards build --release wad-viewer | ||
- name: Zip files | ||
run: zip -r ubuntu-wad-viewer.zip bin/** | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
prerelease: true | ||
tag: "latest" | ||
artifacts: "ubuntu-wad-viewer.zip" | ||
|
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,58 @@ | ||
name: Windows - Pre Release(latest) | ||
on: | ||
push: | ||
branches: | ||
- "master" | ||
jobs: | ||
windows-prerelease: | ||
name: Windows - Pre Release(latest) | ||
runs-on: windows-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Download source | ||
uses: actions/checkout@v2 | ||
- name: Install Crystal | ||
run: | | ||
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | ||
irm get.scoop.sh -outfile 'install.ps1' | ||
.\install.ps1 -RunAsAdmin | ||
echo ("PATH=" + $env:PATH + ";" + $home + "\scoop\shims") >> $env:GITHUB_ENV | ||
scoop bucket add crystal-preview https://github.com/neatorobito/scoop-crystal | ||
scoop install vs_2022_cpp_build_tools | ||
scoop install crystal | ||
- name: shards install | ||
run: shards install | ||
- name: Setup VS Dev Environment | ||
uses: seanmiddleditch/gha-setup-vsdevenv@v4 | ||
- name: raylib-cr post-install | ||
run: | | ||
powershell lib/raylib-cr/rsrc/install-lib.ps1 | ||
echo ("LIB=" + $env:LIB + ";" + $pwd + "\libs") >> $env:GITHUB_ENV | ||
echo ("PATH=" + $env:PATH + ";" + $pwd + "\libs") >> $env:GITHUB_ENV | ||
- name: Build map-viewer | ||
run: | | ||
shards build --release map-viewer | ||
Remove-Item "bin\*.pdb" -Recurse -Force | ||
- name: Zip | ||
run: Compress-Archive -Path "bin/*" -DestinationPath windows-map-viewer.zip | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
tag: "latest" | ||
prerelease: true | ||
artifacts: "windows-map-viewer.zip" | ||
- name: Cleanup | ||
run: Remove-Item -Path "bin" -Recurse -Force | ||
- name: Build wad-viewer | ||
run: | | ||
shards build --release wad-viewer | ||
Remove-Item "bin\*.pdb" -Recurse -Force | ||
- name: Zip | ||
run: Compress-Archive -Path "bin/*" -DestinationPath windows-wad-viewer.zip | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
tag: "latest" | ||
prerelease: true | ||
artifacts: "windows-wad-viewer.zip" |
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