Skip to content

Commit

Permalink
chore: Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Dec 9, 2024
1 parent d7d84f9 commit b59042b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
mingw-w64-i686-gcc
mingw-w64-i686-cmake
mingw-w64-i686-ninja
unzip
- name: (Dependency) Install vcpkg
shell: pwsh
Expand All @@ -97,6 +98,15 @@ jobs:
shell: msys2 {0}
run: cmake --preset=windows-mingw-release -DGITHUB_ACTION_BUILD=ON

- name: Install Node.js and npm
shell: msys2 {0}
run: |
curl -fsSL https://nodejs.org/dist/v16.20.0/node-v16.20.0-win-x86.zip -o node.zip
unzip node.zip -d /usr/local
export PATH="/usr/local/node-v16.20.0-win-x86:$PATH"
node --version
npm --version
- name: Build Millennium
shell: msys2 {0}
run: |
Expand All @@ -109,6 +119,15 @@ jobs:
# Disable Millennium CLI for now, as it keeps get false positive detections for no apparent reason
# cp /d/a/Millennium/Millennium/build/cli/millennium.exe D:/a/env/ext/bin/millennium.exe
- name: Add API modules
run: |
npm install @steambrew/api
New-Item -ItemType Directory -Force -Path "D:/a/env/ext/data/shims"
Copy-Item -Path "./node_modules/@steambrew/api/dist/webkit_api.js" -Destination "D:/a/env/ext/data/shims/webkit_api.js" -Force
Copy-Item -Path "./node_modules/@steambrew/api/dist/client_api.js" -Destination "D:/a/env/ext/data/shims/client_api.js" -Force
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -271,6 +290,11 @@ jobs:
mkdir -p /home/runner/env/ext/bin
cp ./build/cli/millennium /home/runner/env/ext/bin/millennium
npm install @steambrew/api
mkdir -p /home/runner/env/ext/data/shims
cp -r ./node_modules/@steambrew/api/dist/webkit_api.js /home/runner/env/ext/data/shims/webkit_api.js
cp -r ./node_modules/@steambrew/api/dist/client_api.js /home/runner/env/ext/data/shims/client_api.js
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit b59042b

Please sign in to comment.