Skip to content
Merged
Show file tree
Hide file tree
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
57 changes: 20 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
shell: cmd
steps:
- name: Checkout Repository
uses: actions/checkout@v5
uses: actions/checkout@v7
with:
submodules: recursive

- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
uses: TheMrMilchmann/setup-msvc-dev@v4
with:
arch: x64
spectre: true
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:

- name: Upload Standalone [target:VPKEdit]
if: ${{matrix.target == 'VPKEdit'}}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: '${{matrix.target}}-Windows-Standalone-msvc-${{matrix.build_type}}'
path: |
Expand All @@ -95,7 +95,7 @@ jobs:

- name: Upload Standalone [target:StrataSource]
if: ${{matrix.target == 'StrataSource'}}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: '${{matrix.target}}-Windows-Binaries-msvc-${{matrix.build_type}}'
path: |
Expand All @@ -111,7 +111,7 @@ jobs:

- name: Upload Installer [target:VPKEdit]
if: ${{matrix.target == 'VPKEdit'}}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: '${{matrix.target}}-Windows-Installer-msvc-${{matrix.build_type}}'
path: |
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:

- name: Upload Standalone Compatibility [build_type:Release][target:VPKEdit]
if: ${{matrix.build_type == 'Release' && matrix.target == 'VPKEdit'}}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: '${{matrix.target}}-Windows-Standalone-Compatibility-msvc-${{matrix.build_type}}'
path: |
Expand All @@ -169,7 +169,7 @@ jobs:

- name: Upload Compatibility Installer [build_type:Release][target:VPKEdit]
if: ${{matrix.build_type == 'Release' && matrix.target == 'VPKEdit'}}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: '${{matrix.target}}-Windows-Installer-Compatibility-msvc-${{matrix.build_type}}'
path: |
Expand All @@ -178,7 +178,7 @@ jobs:

- name: Upload Standalone PDBs [target:VPKEdit]
if: ${{matrix.target == 'VPKEdit'}}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: '${{matrix.target}}-Windows-PDBs-msvc-${{matrix.build_type}}'
path: |
Expand All @@ -194,7 +194,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v5
uses: actions/checkout@v7
with:
submodules: recursive

Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:

- name: Upload Standalone [target:VPKEdit]
if: ${{matrix.target == 'VPKEdit'}}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: '${{matrix.target}}-Linux-Standalone-gcc-${{matrix.build_type}}'
path: |
Expand All @@ -276,7 +276,7 @@ jobs:

- name: Upload Standalone [target:StrataSource]
if: ${{matrix.target == 'StrataSource'}}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: '${{matrix.target}}-Linux-Binaries-gcc-${{matrix.build_type}}'
path: |
Expand All @@ -292,7 +292,7 @@ jobs:

- name: Upload Installer [target:VPKEdit]
if: ${{matrix.target == 'VPKEdit'}}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: '${{matrix.target}}-Linux-Installer-gcc-${{matrix.build_type}}'
path: |
Expand All @@ -307,7 +307,7 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
submodules: recursive

Expand Down Expand Up @@ -337,7 +337,7 @@ jobs:
run: cpack

- name: Upload Installer
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: '${{matrix.target}}-macOS-Installer-Clang-${{matrix.build_type}}'
path: |
Expand All @@ -352,33 +352,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/github-script@v7
uses: actions/download-artifact@v8
with:
script: |
const artifacts = (await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{github.run_id}},
})).data.artifacts;
const filteredArtifacts = artifacts.filter(artifact => artifact.name.includes("Release"));
console.log(`Found ${artifacts.length} artifacts - ${filteredArtifacts.length} qualify for upload.`);
for (const artifact of filteredArtifacts) {
console.log(`Downloading "${artifact.name}.zip"...`);
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: artifact.id,
archive_format: 'zip',
});
let fs = require('fs');
fs.writeFileSync(`${{github.workspace}}/${artifact.name}.zip`, Buffer.from(download.data));
}
console.log("Artifact download complete!");
skip-decompress: true
merge-multiple: true
pattern: '*Release*'

- name: Upload Release
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: Release-Artifacts
path: |
${{github.workspace}}/*.zip
${{github.workspace}}/*Release*.zip
retention-days: 7
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.vscode/
CMakeSettings.json
*.user
*.autosave

# Project exclude paths
build/
Expand Down
Loading