-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
192 additions
and
18 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Windows - Deploy Docs | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
name: Windows - Deploy Docs | ||
runs-on: windows-latest | ||
steps: | ||
- name: Download source | ||
uses: actions/checkout@v2 | ||
- name: Install scoop 1 | ||
run: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | ||
- name: Install scoop 2 | ||
run: irm get.scoop.sh -outfile 'install.ps1' | ||
- name: Install scoop 3 | ||
run: .\install.ps1 -RunAsAdmin | ||
- name: set scoop env | ||
run: | | ||
echo ("PATH=" + $env:PATH + ";" + $home + "\scoop\shims") >> $env:GITHUB_ENV | ||
- name: Install crystal 1 | ||
run: scoop bucket add crystal-preview https://github.com/neatorobito/scoop-crystal | ||
- name: Install crystal 2 | ||
run: scoop install vs_2022_cpp_build_tools | ||
- name: Install crystal 3 | ||
run: 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 | ||
- name: set env | ||
run: | | ||
echo ("LIB=" + $env:LIB + ";" + $pwd + "\libs") >> $env:GITHUB_ENV | ||
echo ("PATH=" + $env:PATH + ";" + $pwd + "\libs") >> $env:GITHUB_ENV | ||
- name: check env | ||
run: | | ||
echo $env:LIB | ||
echo $env:PATH | ||
- name: make site | ||
run: | | ||
crystal docs | ||
- name: Deploy docs | ||
uses: crazy-max/[email protected] | ||
with: | ||
target_branch: gh-pages | ||
build_dir: docs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,61 @@ | ||
name: Windows - Pre Release | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
name: Windows - Pre Release | ||
runs-on: windows-latest | ||
steps: | ||
- name: Download source | ||
uses: actions/checkout@v2 | ||
- name: Install scoop 1 | ||
run: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | ||
- name: Install scoop 2 | ||
run: irm get.scoop.sh -outfile 'install.ps1' | ||
- name: Install scoop 3 | ||
run: .\install.ps1 -RunAsAdmin | ||
- name: set scoop env | ||
run: | | ||
echo ("PATH=" + $env:PATH + ";" + $home + "\scoop\shims") >> $env:GITHUB_ENV | ||
- name: Install crystal 1 | ||
run: scoop bucket add crystal-preview https://github.com/neatorobito/scoop-crystal | ||
- name: Install crystal 2 | ||
run: scoop install vs_2022_cpp_build_tools | ||
- name: Install crystal 3 | ||
run: 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 | ||
- name: set env | ||
run: | | ||
echo ("LIB=" + $env:LIB + ";" + $pwd + "\libs") >> $env:GITHUB_ENV | ||
echo ("PATH=" + $env:PATH + ";" + $pwd + "\libs") >> $env:GITHUB_ENV | ||
- name: check env | ||
run: | | ||
echo $env:LIB | ||
echo $env:PATH | ||
- name: shards build | ||
run: | | ||
shards build --release | ||
- name: git lfs fetch | ||
run: git lfs fetch | ||
- name: git lfs checkout | ||
run: git lfs checkout | ||
- name: Copy rsrc | ||
run: | | ||
$ErrorActionPreference= 'silentlycontinue' | ||
mkdir bin/rsrc | ||
copy rsrc/* bin/rsrc | ||
del bin/rsrc/_dev | ||
- name: Zip | ||
run: Compress-Archive -Path "bin/*" -DestinationPath windows-prerelease.zip | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "latest" | ||
prerelease: true | ||
title: "Nightly" | ||
files: | | ||
windows-prerelease.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,63 @@ | ||
name: Windows - Release | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
jobs: | ||
build: | ||
name: Windows - Release | ||
runs-on: windows-latest | ||
steps: | ||
- name: Download source | ||
uses: actions/checkout@v2 | ||
- name: Install scoop 1 | ||
run: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | ||
- name: Install scoop 2 | ||
run: irm get.scoop.sh -outfile 'install.ps1' | ||
- name: Install scoop 3 | ||
run: .\install.ps1 -RunAsAdmin | ||
- name: set scoop env | ||
run: | | ||
echo ("PATH=" + $env:PATH + ";" + $home + "\scoop\shims") >> $env:GITHUB_ENV | ||
- name: Install crystal 1 | ||
run: scoop bucket add crystal-preview https://github.com/neatorobito/scoop-crystal | ||
- name: Install crystal 2 | ||
run: scoop install vs_2022_cpp_build_tools | ||
- name: Install crystal 3 | ||
run: scoop install crystal | ||
- name: shards install | ||
run: scoop 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 | ||
- name: set env | ||
run: | | ||
echo ("LIB=" + $env:LIB + ";" + $pwd + "\libs") >> $env:GITHUB_ENV | ||
echo ("PATH=" + $env:PATH + ";" + $pwd + "\libs") >> $env:GITHUB_ENV | ||
- name: check env | ||
run: | | ||
echo $env:LIB | ||
echo $env:PATH | ||
- name: shards build | ||
run: | | ||
shards build --release | ||
- name: git lfs fetch | ||
run: git lfs fetch | ||
- name: git lfs checkout | ||
run: git lfs checkout | ||
- name: Copy rsrc | ||
run: | | ||
$ErrorActionPreference= 'silentlycontinue' | ||
mkdir bin/rsrc | ||
copy rsrc/* bin/rsrc | ||
del bin/rsrc/_dev | ||
- name: Zip | ||
run: Compress-Archive -Path "bin/*" -DestinationPath windows-prerelease.zip | ||
|
||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
files: | | ||
windows-release.zip |