-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3b5dc2
commit 1c911ae
Showing
16 changed files
with
578 additions
and
446 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Build-and-Test-MSVC-Windows | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
Build: | ||
runs-on: windows-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
msvc: [2022] | ||
build_type: [Debug, Release] | ||
std: [20] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Update Vcpkg and install other dependencies | ||
run: | | ||
cd C:/vcpkg | ||
./bootstrap-vcpkg.bat | ||
git stash | ||
git pull | ||
vcpkg update | ||
- name: Install the dependencies | ||
run: | | ||
vcpkg install opus:x64-windows | ||
vcpkg install libsodium:x64-windows | ||
vcpkg install openssl:x64-windows | ||
- name: Configure CMake | ||
working-directory: ./ | ||
run: | | ||
cmake -S . -B ./Build -DDEV=true -DVCPKG_ROOT_DIR=C:/vcpkg | ||
- name: Build the Test | ||
working-directory: ./Build | ||
run: | | ||
cmake --build . --config=${{matrix.build_type}} | ||
- name: Install the Test | ||
working-directory: ./Build/ | ||
run: | | ||
cmake --install ./ --config=${{matrix.build_type}} | ||
- name: Clone DiscordCoreAPI-Binaries repository | ||
run: | | ||
git clone https://github.com/RealTimeChris/DiscordCoreAPI-Binaries.git ./DiscordCoreAPI-Binaries | ||
cd DiscordCoreAPI-Binaries | ||
git config user.name "GitHub Action" | ||
git config user.email "action@github.com" | ||
- name: Copy build artifacts to DiscordCoreAPI-Binaries | ||
run: | | ||
cp -r -Force "C:/Program Files (x86)/DiscordCoreAPI/*" ./DiscordCoreAPI-Binaries/${{matrix.build_type}} -v | ||
cd ./DiscordCoreAPI-Binaries/${{matrix.build_type}} | ||
Remove-Item -Force ./bin/discordcoreapi.pdb | ||
- name: Commit and push changes to DiscordCoreAPI-Binaries | ||
working-directory: ./DiscordCoreAPI-Binaries | ||
run: | | ||
git add . | ||
git commit -m "Update binaries for ${{matrix.build_type}} build" | ||
git push https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/RealTimeChris/DiscordCoreAPI-Binaries.git main | ||
continue-on-error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.