Skip to content

Commit 7d24772

Browse files
committed
merge into single yaml file
1 parent 8b93203 commit 7d24772

File tree

2 files changed

+52
-56
lines changed

2 files changed

+52
-56
lines changed

.github/workflows/main-windows.yml

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

.github/workflows/main.yml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: FLTK Janet
33
on: [push]
44

55
jobs:
6-
build:
6+
build-posix:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
@@ -32,3 +32,54 @@ jobs:
3232
run: cd spork && janet --install .
3333
- name: Build fltk-janet
3434
run: echo "$HOME/janet/bin" >> $GITHUB_PATH && cd fltk-janet && janet-pm build
35+
36+
build-windows:
37+
runs-on: windows-latest
38+
steps:
39+
- name: setup PATH and ENV
40+
run: |
41+
echo "$HOME/AppData/Local/Apps/Janet/bin;$HOME/AppData/Local/Apps/Janet/Library/bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
42+
shell: pwsh
43+
- uses: actions/checkout@v4
44+
with:
45+
repository: rwtolbert/fltk-janet
46+
path: fltk-janet
47+
- uses: actions/checkout@v4
48+
with:
49+
repository: janet-lang/janet
50+
path: janet
51+
- uses: actions/checkout@v4
52+
with:
53+
repository: janet-lang/spork
54+
path: spork
55+
- name: Build janet
56+
run: |
57+
cd janet
58+
${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" && build_win.bat' }}
59+
shell: cmd
60+
- name: Build Janet dist
61+
run: |
62+
cd janet
63+
${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" && build_win.bat dist' }}
64+
shell: cmd
65+
- name: Install Janet
66+
run: |
67+
cd janet
68+
${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" && build_win.bat install' }}
69+
shell: cmd
70+
- name: Build spork
71+
run: |
72+
refreshenv & cd spork & janet -l ./bundle -e "(do (setdyn :verbose true) (build))"
73+
shell: cmd
74+
- name: Test Install spork
75+
run: |
76+
refreshenv & janet -e "(bundle/install `spork`)"
77+
shell: cmd
78+
- name: Build fltk-janet
79+
run: |
80+
refreshenv & cd fltk-janet & C:\Users\runneradmin\AppData\Local\Apps\Janet\Library\bin\janet-pm.bat build
81+
shell: cmd
82+
- name: Install fltk-janet
83+
run: |
84+
refreshenv & cd fltk-janet & C:\Users\runneradmin\AppData\Local\Apps\Janet\Library\bin\janet-pm.bat install
85+
shell: cmd

0 commit comments

Comments
 (0)