Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
reorganize GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Mar 13, 2024
1 parent a2e2c7d commit 3593756
Showing 1 changed file with 21 additions and 56 deletions.
77 changes: 21 additions & 56 deletions .github/workflows/pr_validation.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
# ------------------------------------------------------------------------------
# <auto-generated>
#
# This code was generated.
#
# - To turn off auto-generation set:
#
# [CustomGitHubActions (AutoGenerate = false)]
#
# - To trigger manual generation invoke:
#
# nuke --generate-configuration GitHubActions_pr_validation --host GitHubActions
#
# </auto-generated>
# ------------------------------------------------------------------------------

name: pr_validation

on:
Expand All @@ -27,61 +11,42 @@ on:
- dev

jobs:
windows-latest:
name: windows-latest
runs-on: windows-latest
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Make build.sh executable
run: chmod +x ./build.sh
- name: Make build.cmd executable
run: chmod +x ./build.cmd
- uses: actions/setup-dotnet@v1
- uses: actions/checkout@v3

- name: Make build scripts executable
if: runner.os != 'Windows'
run: |
chmod +x ./build.sh
chmod +x ./build.cmd
- uses: actions/setup-dotnet@v2
with:
dotnet-version: 5.0.*
- uses: actions/setup-dotnet@v1

- uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.*

- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}

- name: dotnet nuget
run: dotnet nuget add source -n Phobos "${{ secrets.CUSTOMNUGETSOURCE }}"

- name: Run './build.cmd All'
run: ./build.cmd All
env:
CustomNuGetSource: ${{ secrets.CUSTOMNUGETSOURCE }}
GITHUB_CONTEXT: ${{ toJSON(github) }}
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Make build.sh executable
run: chmod +x ./build.sh
- name: Make build.cmd executable
run: chmod +x ./build.cmd
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.*
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.*
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: dotnet nuget
run: dotnet nuget add source -n Phobos ${{ secrets.CUSTOMNUGETSOURCE }}
- name: Run './build.cmd All'
run: ./build.cmd All
env:
CustomNuGetSource: ${{ secrets.CUSTOMNUGETSOURCE }}
GITHUB_CONTEXT: ${{ toJSON(github) }}
GITHUB_CONTEXT: ${{ toJSON(github) }}

0 comments on commit 3593756

Please sign in to comment.