Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 26 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,66 +9,64 @@ permissions:

jobs:
release:
name: Build and package
runs-on: windows-latest

steps:
- name: Checkout Overdub
- name: Checkout
uses: actions/checkout@v4

- name: Checkout hibiki-bootstrap
uses: actions/checkout@v4
with:
repository: akmubi/hibiki-bootstrap
path: hibiki-bootstrap

- name: Setup MSBuild
- name: Setup MSVC
uses: microsoft/setup-msbuild@v2

- name: Setup MSVC environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64

- name: Build Overdub
- name: Build
run: >
msbuild overdub.sln
/m
/p:Configuration=Release
/p:Platform=x64
/p:TreatWarningAsError=true
/warnAsError

- name: Build bootstrap DLLs
shell: cmd
run: |
cd hibiki-bootstrap
call build.bat steam overdub.dll
call build.bat epic overdub.dll
call build.bat xbox overdub.dll

- name: Get version
- name: Get version
shell: pwsh
run: |
$version = "${{ github.event.release.tag_name }}" -replace '^v', ''

if ([string]::IsNullOrWhiteSpace($version)) {
throw "Could not determine release version"
}

"VERSION=$version" >> $env:GITHUB_ENV

- name: Create packages
- name: Download latest hibiki-bootstrap
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
run: |
New-Item -ItemType Directory -Force bootstrap | Out-Null

gh release download `
--repo akmubi/hibiki-bootstrap `
--pattern XAPOFX1_5.dll `
--pattern dsound.dll `
--dir bootstrap

- name: Create packages
shell: pwsh
run: |
New-Item -ItemType Directory -Force package\steam | Out-Null
New-Item -ItemType Directory -Force package\epic | Out-Null
New-Item -ItemType Directory -Force package\xbox | Out-Null

Copy-Item build\overdub.dll package\steam\
Copy-Item hibiki-bootstrap\build\steam\XAPOFX1_5.dll package\steam\
Copy-Item bootstrap\XAPOFX1_5.dll package\steam\

Copy-Item build\overdub.dll package\epic\
Copy-Item hibiki-bootstrap\build\epic\XAPOFX1_5.dll package\epic\
Copy-Item bootstrap\XAPOFX1_5.dll package\epic\

Copy-Item build\overdub.dll package\xbox\
Copy-Item hibiki-bootstrap\build\xbox\dsound.dll package\xbox\
Copy-Item bootstrap\dsound.dll package\xbox\

Compress-Archive `
-Path package\steam\* `
Expand All @@ -82,7 +80,7 @@ jobs:
-Path package\xbox\* `
-DestinationPath "overdub-$env:VERSION.xbox.zip"

- name: Upload release assets
- name: Upload release assets
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
Expand Down
Loading