Skip to content

Commit 00d6839

Browse files
committed
CI: Use GitHub Actions for Windows builds
1 parent dac8a17 commit 00d6839

3 files changed

Lines changed: 47 additions & 58 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: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,50 @@ jobs:
101101
..
102102
make -j$NUMCPUS --load-average=$NUMCPUS
103103
popd
104+
windows:
105+
runs-on: windows-2025
106+
steps:
107+
- name: Set global environment variables
108+
shell: bash
109+
run: |
110+
echo "BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}" >$GITHUB_ENV
111+
- name: Check out code
112+
uses: actions/checkout@v4
113+
- name: Set up build
114+
shell: bash
115+
run: |
116+
set -x
117+
choco install -y nsis
118+
git clone --depth=1 https://github.com/nathan818fr/vcvars-bash.git c:/vcvars-bash
119+
git clone --depth=1 https://github.com/VirtualGL/buildscripts.git -b $BRANCH c:/buildscripts
120+
- name: Configure GPG signing
121+
if: ${{github.event_name != 'pull_request'}}
122+
shell: bash
123+
run: |
124+
printf "${{secrets.GPG_KEY}}" | base64 --decode | gpg --batch --import -
125+
echo "GPG_KEY_NAME=\"${{secrets.GPG_KEY_NAME}}\"" >c:/buildscripts/gpgsign
126+
echo "GPG_KEY_ID=${{secrets.GPG_KEY_ID}}" >>c:/buildscripts/gpgsign
127+
echo "GPG_KEY_PASS=${{secrets.GPG_KEY_PASS}}" >>c:/buildscripts/gpgsign
128+
- name: Build
129+
shell: bash
130+
run: |
131+
export PATH="/c/Program Files (x86)/NSIS/:$PATH"
132+
export VSINSTALLDIR='C:\Program Files\Microsoft Visual Studio\2022\Enterprise\'
133+
eval "$(c:/vcvars-bash/vcvarsall.sh amd64)"
134+
echo INCLUDE=$INCLUDE
135+
echo LIB=$LIB
136+
echo PATH=$PATH
137+
c:/buildscripts/buildvgl -d $GITHUB_WORKSPACE -b /c/vgl.nightly -v
138+
mv /c/vgl.nightly/log-${{github.job}}.txt /c/vgl.nightly/files/
139+
- name: Configure AWS
140+
if: ${{github.event_name != 'pull_request'}}
141+
uses: aws-actions/configure-aws-credentials@v4
142+
with:
143+
aws-access-key-id: ${{secrets.AWS_ACCESS_KEY_ID}}
144+
aws-secret-access-key: ${{secrets.AWS_SECRET_ACCESS_KEY}}
145+
aws-region: ${{secrets.AWS_REGION}}
146+
- name: Deploy
147+
if: ${{github.event_name != 'pull_request' && !contains(github.ref, 'refs/tags/')}}
148+
shell: bash
149+
run: |
150+
aws s3 sync --acl public-read --delete c:/vgl.nightly/files s3://virtualgl-pr/${{env.BRANCH}}/${{github.job}}/

appveyor.yml

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

0 commit comments

Comments
 (0)