Skip to content

Commit

Permalink
Meta: Use reusable workflow to build projects
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeldesu committed Oct 13, 2023
1 parent bdbab26 commit 7bfe108
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 140 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build

on:
workflow_call:
inputs:
project:
required: true
type: string

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.x'
- name: Install dependencies
working-directory: ${{ inputs.project }}
run: dotnet restore
- name: Build project
working-directory: ${{ inputs.project }}
run: dotnet build
17 changes: 3 additions & 14 deletions .github/workflows/dat-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ on:

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.x'
- name: Install dependencies
working-directory: PangLib.DAT
run: dotnet restore
- name: Build project
working-directory: PangLib.DAT
run: dotnet build
uses: ./.github/workflows/_build.yaml
with:
project: PangLib.DAT
17 changes: 3 additions & 14 deletions .github/workflows/iff-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ on:

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.x'
- name: Install dependencies
working-directory: PangLib.IFF
run: dotnet restore
- name: Build project
working-directory: PangLib.IFF
run: dotnet build
uses: ./.github/workflows/_build.yaml
with:
project: PangLib.IFF
17 changes: 3 additions & 14 deletions .github/workflows/pak-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ on:

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.x'
- name: Install dependencies
working-directory: PangLib.PAK
run: dotnet restore
- name: Build project
working-directory: PangLib.PAK
run: dotnet build
uses: ./.github/workflows/_build.yaml
with:
project: PangLib.PAK
17 changes: 3 additions & 14 deletions .github/workflows/pet-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ on:

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.x'
- name: Install dependencies
working-directory: PangLib.PET
run: dotnet restore
- name: Build project
working-directory: PangLib.PET
run: dotnet build
uses: ./.github/workflows/_build.yaml
with:
project: PangLib.PET
17 changes: 3 additions & 14 deletions .github/workflows/sbin-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ on:

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.x'
- name: Install dependencies
working-directory: PangLib.SBIN
run: dotnet restore
- name: Build project
working-directory: PangLib.SBIN
run: dotnet build
uses: ./.github/workflows/_build.yaml
with:
project: PangLib.SBIN
17 changes: 3 additions & 14 deletions .github/workflows/scripting-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ on:

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.x'
- name: Install dependencies
working-directory: PangLib.Scripting
run: dotnet restore
- name: Build project
working-directory: PangLib.Scripting
run: dotnet build
uses: ./.github/workflows/_build.yaml
with:
project: PangLib.Scripting
17 changes: 3 additions & 14 deletions .github/workflows/ucc-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ on:

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.x'
- name: Install dependencies
working-directory: PangLib.UCC
run: dotnet restore
- name: Build project
working-directory: PangLib.UCC
run: dotnet build
uses: ./.github/workflows/_build.yaml
with:
project: PangLib.UCC
17 changes: 3 additions & 14 deletions .github/workflows/updatelist-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ on:

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.x'
- name: Install dependencies
working-directory: PangLib.UpdateList
run: dotnet restore
- name: Build project
working-directory: PangLib.UpdateList
run: dotnet build
uses: ./.github/workflows/_build.yaml
with:
project: PangLib.UpdateList
17 changes: 3 additions & 14 deletions .github/workflows/utilities-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ on:

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.x'
- name: Install dependencies
working-directory: PangLib.Utilities
run: dotnet restore
- name: Build project
working-directory: PangLib.Utilities
run: dotnet build
uses: ./.github/workflows/_build.yaml
with:
project: PangLib.Utilities
17 changes: 3 additions & 14 deletions .github/workflows/wep-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ on:

jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.x'
- name: Install dependencies
working-directory: PangLib.WEP
run: dotnet restore
- name: Build project
working-directory: PangLib.WEP
run: dotnet build
uses: ./.github/workflows/_build.yaml
with:
project: PangLib.WEP

0 comments on commit 7bfe108

Please sign in to comment.