Skip to content

Commit 8491df8

Browse files
authored
Add Github Actions build on Windows (#7)
1 parent 7c70e93 commit 8491df8

1 file changed

Lines changed: 26 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ jobs:
66
ubuntu-build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v1
9+
- uses: actions/checkout@v4
10+
with:
11+
submodules: true
1012
- name: Setup environment
1113
run: |
1214
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
1315
sudo apt-get update
1416
sudo apt-get install texlive*
15-
- name: Update submodules
16-
run: git submodule update --init --recursive
1717
- name: Build
1818
run: |
1919
mkdir build
@@ -22,7 +22,29 @@ jobs:
2222
cmake --build .
2323
cd ..
2424
shell: bash
25-
- uses: actions/upload-artifact@v2
25+
- uses: actions/upload-artifact@v4
2626
with:
2727
name: ubuntu-artifacts
2828
path: build/bin/
29+
windows-build:
30+
runs-on: windows-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
submodules: true
35+
- name: Setup environment
36+
run: |
37+
choco install miktex --no-progress
38+
echo "C:\Program Files\MiKTeX\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
39+
- name: Build
40+
run: |
41+
mkdir build
42+
cd build
43+
cmake -D USE_LATEX=ON ..
44+
cmake --build .
45+
cd ..
46+
shell: bash
47+
- uses: actions/upload-artifact@v4
48+
with:
49+
name: windows-artifacts
50+
path: build/bin/

0 commit comments

Comments
 (0)