diff --git a/github-workflows/ubuntu-prerelease.yml b/github-workflows/ubuntu-prerelease.yml index a57aea4..c17d540 100644 --- a/github-workflows/ubuntu-prerelease.yml +++ b/github-workflows/ubuntu-prerelease.yml @@ -22,20 +22,18 @@ jobs: run: sh ./lib/raylib-cr/rsrc/install-lib.sh - name: Build project run: shards build --release - - name: git lfs fetch - run: git lfs fetch - - name: git lfs checkout - run: git lfs checkout - - name: Copy rsrc - run: cp -r rsrc bin - - name: Cleanup rsrc - run: rm -rf bin/rsrc/_dev + - name: Copy Rsrc + run: | + git lfs fetch + git lfs checkout + cp -r rsrc bin + rm -rf bin/rsrc/_dev - name: Zip files run: zip -r ubuntu-prerelease.zip bin/** - uses: ncipollo/release-action@v1 with: allowUpdates: true - title: "Nightly" prerelease: true + tag: "latest" artifacts: "ubuntu-prerelease.zip" \ No newline at end of file diff --git a/github-workflows/ubuntu-release.yml b/github-workflows/ubuntu-release.yml index 963ede9..0a636d9 100644 --- a/github-workflows/ubuntu-release.yml +++ b/github-workflows/ubuntu-release.yml @@ -22,14 +22,12 @@ jobs: run: sh ./lib/raylib-cr/rsrc/install-lib.sh - name: Build project run: shards build --release - - name: git lfs fetch - run: git lfs fetch - - name: git lfs checkout - run: git lfs checkout - - name: Copy rsrc - run: cp -r rsrc bin - - name: Cleanup rsrc - run: rm -rf bin/rsrc/_dev + - name: Copy Rsrc + run: | + git lfs fetch + git lfs checkout + cp -r rsrc bin + rm -rf bin/rsrc/_dev - name: Zip files run: zip -r ubuntu-release.zip bin/** diff --git a/github-workflows/windows-build.yml b/github-workflows/windows-build.yml index ba2864a..c630d3f 100644 --- a/github-workflows/windows-build.yml +++ b/github-workflows/windows-build.yml @@ -7,35 +7,24 @@ jobs: 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 + - 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 - - 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 + 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 - - name: set env - run: | + 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: check env - run: | - echo $env:LIB - echo $env:PATH - name: shards build run: | shards build \ No newline at end of file diff --git a/github-workflows/windows-docs.yml b/github-workflows/windows-docs.yml index e707038..561805d 100644 --- a/github-workflows/windows-docs.yml +++ b/github-workflows/windows-docs.yml @@ -7,35 +7,24 @@ jobs: 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 + - 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 - - 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 + 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 - - name: set env - run: | + 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: check env - run: | - echo $env:LIB - echo $env:PATH - name: make site run: | crystal docs diff --git a/github-workflows/windows-prerelease.yml b/github-workflows/windows-prerelease.yml index ecf8949..824bfdc 100644 --- a/github-workflows/windows-prerelease.yml +++ b/github-workflows/windows-prerelease.yml @@ -9,29 +9,22 @@ jobs: 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 + - 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 - - 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 + 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 - - name: set libs env - run: | + 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: shards build diff --git a/github-workflows/windows-release.yml b/github-workflows/windows-release.yml index e1814b0..bf15c53 100644 --- a/github-workflows/windows-release.yml +++ b/github-workflows/windows-release.yml @@ -12,29 +12,22 @@ jobs: 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 + - 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 - - 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 + 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: scoop 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 libs env - run: | + 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: shards build