Skip to content

Commit

Permalink
Github workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sol-vin committed Sep 3, 2023
1 parent 936a1bc commit acd3437
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build Examples
name: Ubuntu - Build Examples
on: [push, pull_request]
jobs:
build:
name: Build Examples
name: Ubuntu - Build Examples
runs-on: ubuntu-latest
steps:
- name: Download source
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Windows - Build Examples
on: [push, pull_request]
jobs:
build:
name: Windows - Build Examples
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: Install crystal 1
run: C:\Users\runneradmin\scoop\shims\scoop.cmd bucket add crystal-preview https://github.com/neatorobito/scoop-crystal
- name: Install crystal 2
run: C:\Users\runneradmin\scoop\shims\scoop.cmd install vs_2022_cpp_build_tools
- name: Install crystal 3
run: C:\Users\runneradmin\scoop\shims\scoop.cmd install crystal
- name: shards install
run: C:\Users\runneradmin\scoop\shims\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: Build examples
run: crystal run rsrc/build-examples/build.cr
29 changes: 19 additions & 10 deletions github-workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Windows - Build
on: [push, pull_request]
jobs:
build:
name: Build
name: Windows - Build
runs-on: windows-latest
steps:
- name: Download source
Expand All @@ -13,17 +13,26 @@ jobs:
run: irm get.scoop.sh -outfile 'install.ps1'
- name: Install scoop 3
run: .\install.ps1 -RunAsAdmin
- name: Install scoop 4
run: iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
- name: Install crystal 1
run: scoop bucket add crystal-preview https://github.com/neatorobito/scoop-crystal
run: C:\Users\runneradmin\scoop\shims\scoop.cmd bucket add crystal-preview https://github.com/neatorobito/scoop-crystal
- name: Install crystal 2
run: scoop install vs_2022_cpp_build_tools
run: C:\Users\runneradmin\scoop\shims\scoop.cmd install vs_2022_cpp_build_tools
- name: Install crystal 3
run: scoop install crystal
run: C:\Users\runneradmin\scoop\shims\scoop.cmd install crystal
- name: shards install
run: shards install
run: C:\Users\runneradmin\scoop\shims\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.ps1
- name: raylib-cr post-install
run: shards build
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: |
C:\Users\runneradmin\scoop\shims\shards build

0 comments on commit acd3437

Please sign in to comment.