Skip to content

Commit

Permalink
Github workflows cleaned up pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
sol-vin committed Sep 4, 2023
1 parent 800af69 commit 3fb7a2b
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 23 deletions.
18 changes: 18 additions & 0 deletions github-workflows/ubuntu-build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Ubuntu - Build docs
on: [push, pull_request]

jobs:
ubuntu-build-docs:
name: Ubuntu - Build docs
runs-on: ubuntu-latest
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.sh
- name: Build site
run: crystal docs
6 changes: 3 additions & 3 deletions github-workflows/ubuntu-build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Ubuntu - Build
on: [push, pull_request]
jobs:
build:
name: Build
ubuntu-build:
name: Ubuntu - Build
runs-on: ubuntu-latest
steps:
- name: Download source
Expand All @@ -12,6 +12,6 @@ jobs:
- name: Install Crystal libs
run: shards install
- name: raylib-cr post-install
run: sh ./lib/raylib-cr/rsrc/install.sh
run: sh ./lib/raylib-cr/rsrc/install-lib.sh
- name: Build project
run: shards build
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ on:
branches:
- main
- master
pull_request:
branches:
- main
- master

jobs:
build:
name: Deploy docs
ubuntu-deploy-docs:
name: Ubuntu - Deploy docs
runs-on: ubuntu-latest
steps:
- name: Download source
Expand Down
4 changes: 2 additions & 2 deletions github-workflows/ubuntu-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- "master"

jobs:
pre-release:
name: "Pre Release"
ubuntu-pre-release:
name: "Ubuntu - Pre Release(latest)"
runs-on: "ubuntu-latest"
permissions:
contents: write
Expand Down
4 changes: 2 additions & 2 deletions github-workflows/ubuntu-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- "v*"

jobs:
release:
name: "Release"
ubuntu-release:
name: "Ubuntu - Release(v*)"
runs-on: "ubuntu-latest"
permissions:
contents: write
Expand Down
32 changes: 32 additions & 0 deletions github-workflows/windows-build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Windows - Build docs

on: [push, pull_request]

jobs:
windows-build-docs:
name: Windows - Build Docs
runs-on: windows-latest
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: make site
run: |
crystal docs
3 changes: 2 additions & 1 deletion github-workflows/windows-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Windows - Build
on: [push, pull_request]

jobs:
build:
windows-build:
name: Windows - Build
runs-on: windows-latest
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Windows - Deploy Docs
on: [push, pull_request]
on:
push:
branches:
- main
- master

jobs:
build:
windows-deploy-docs:
name: Windows - Deploy Docs
runs-on: windows-latest
steps:
Expand Down
8 changes: 4 additions & 4 deletions github-workflows/windows-prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Windows - Pre Release
on: [push, pull_request]
name: Windows - Pre Release(latest)
on: [push]
jobs:
build:
name: Windows - Pre Release
windows-prerelease:
name: Windows - Pre Release(latest)
runs-on: windows-latest
permissions:
contents: write
Expand Down
7 changes: 4 additions & 3 deletions github-workflows/windows-release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Windows - Release
name: Windows - Release(v*)

on:
push:
tags:
- "v*"
jobs:
build:
name: Windows - Release
windows-release:
name: Windows - Release(v*)
runs-on: windows-latest
permissions:
contents: write
Expand Down

0 comments on commit 3fb7a2b

Please sign in to comment.