Skip to content

Commit

Permalink
Cleaned up github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sol-vin committed Sep 4, 2023
1 parent 080b890 commit 800af69
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 90 deletions.
16 changes: 7 additions & 9 deletions github-workflows/ubuntu-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
14 changes: 6 additions & 8 deletions github-workflows/ubuntu-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**

Expand Down
29 changes: 9 additions & 20 deletions github-workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
29 changes: 9 additions & 20 deletions github-workflows/windows-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 9 additions & 16 deletions github-workflows/windows-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 10 additions & 17 deletions github-workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 800af69

Please sign in to comment.