Skip to content

Commit

Permalink
improved windows build workflow (#12)
Browse files Browse the repository at this point in the history
* generate artificats for windows

* fix install step in windows workflow

* copy pthreads
  • Loading branch information
fw2568 committed Nov 1, 2022
1 parent 4171d35 commit d0170ee
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build-windows:
name: windows ${{ join(matrix.*, ' ') }}
env:
OPTS: --prefix=C:/openvswitch/usr --localstatedir=C:/openvswitch/var --sysconfdir=C:/openvswitch/etc ${{ matrix.opts }}
OPTS: --prefix=C:/openvswitch/usr --localstatedir=C:/ProgramData/openvswitch/var --sysconfdir=C:/ProgramData/openvswitch/etc ${{ matrix.opts }}
TESTSUITE: ${{ matrix.testsuite }}

runs-on: windows-latest
Expand Down Expand Up @@ -87,3 +87,15 @@ jobs:
with:
name: logs-windows-${{ join(matrix.*, '-') }}
path: config.log
- name: install
run: |
source ~/.visualstudio.sh
source ~/.pythonenv.sh
make install
cp ./PTHREADS-BUILT/bin/pthreadVC3.dll /C/openvswitch/usr/sbin
cp ./PTHREADS-BUILT/bin/pthreadVC3.dll /C/openvswitch/usr/bin
- name: upload build artifacts
uses: actions/upload-artifact@v2
with:
name: openswitch-windows-${{ join(matrix.*, '-') }}
path: c:\openvswitch

0 comments on commit d0170ee

Please sign in to comment.