Skip to content

Commit cccb98a

Browse files
committed
CI: Use GitHub Actions for Windows builds
1 parent fe872c8 commit cccb98a

3 files changed

Lines changed: 35 additions & 32 deletions

File tree

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
/.github export-ignore
2-
/appveyor.yml export-ignore
32
/.gitattributes export-ignore

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,38 @@ jobs:
9090
..
9191
make -j$NUMCPUS --load-average=$NUMCPUS
9292
popd
93+
windows:
94+
runs-on: windows-2025
95+
steps:
96+
- name: Set global environment variables
97+
shell: bash
98+
run: |
99+
echo "BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}" >$GITHUB_ENV
100+
- name: Check out code
101+
uses: actions/checkout@v4
102+
- name: Set up build
103+
shell: bash
104+
run: |
105+
set -x
106+
choco install -y nsis
107+
git clone --depth=1 https://github.com/nathan818fr/vcvars-bash.git c:/vcvars-bash
108+
git clone --depth=1 https://github.com/VirtualGL/buildscripts.git -b $BRANCH c:/buildscripts
109+
- name: Configure GPG signing
110+
if: ${{github.event_name != 'pull_request'}}
111+
shell: bash
112+
run: |
113+
printf "${{secrets.GPG_KEY}}" | base64 --decode | gpg --batch --import -
114+
echo "GPG_KEY_NAME=\"${{secrets.GPG_KEY_NAME}}\"" >c:/buildscripts/gpgsign
115+
echo "GPG_KEY_ID=${{secrets.GPG_KEY_ID}}" >>c:/buildscripts/gpgsign
116+
echo "GPG_KEY_PASS=${{secrets.GPG_KEY_PASS}}" >>c:/buildscripts/gpgsign
117+
- name: Build
118+
shell: bash
119+
run: |
120+
export PATH="/c/Program Files (x86)/NSIS/:$PATH"
121+
export VSINSTALLDIR='C:\Program Files\Microsoft Visual Studio\2022\Enterprise\'
122+
eval "$(c:/vcvars-bash/vcvarsall.sh amd64)"
123+
echo INCLUDE=$INCLUDE
124+
echo LIB=$LIB
125+
echo PATH=$PATH
126+
c:/buildscripts/buildvgl -d $GITHUB_WORKSPACE -b /c/vgl.nightly -v
127+
mv /c/vgl.nightly/log-${{github.job}}.txt /c/vgl.nightly/files/

appveyor.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)