-
Notifications
You must be signed in to change notification settings - Fork 43
Add CI test for Windows with GitHub actions #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: winport
Are you sure you want to change the base?
Changes from all commits
57531d6
3ac85e4
ecbb347
f6c0551
de964e2
c9f2bdf
5cd98d8
95fe0bc
a415140
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| name: windows-x64 | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - alpha | ||
| - preflight | ||
|
|
||
| pull_request: | ||
| branches: | ||
| - master | ||
| - alpha | ||
| - preflight | ||
|
|
||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: windows-x64-${{ github.ref }} | ||
| cancel-in-progress: true | ||
kkm000 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| windows_x64: | ||
| name: Windows x64 | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [windows-latest] | ||
| build_type: [Release, Debug] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.8" | ||
|
|
||
| - name: Install Python dependencies | ||
| shell: cmd | ||
| run: | | ||
| pip install ninja | ||
|
|
||
| - name: Show ninja help | ||
| shell: bash | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'm getting
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It is quite fast in GitHub actions and you won't feel any latency between
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still strongly suggest switching to the native shell. I know what is going on in the guts of the OS when you use WSL Bash this way, and that's a lot, and I do mean a lot. A hypervisor partition is created, then a network switch, a Linux OS is booted into this partition from a .vhd virtual disk, then it mounts Windows volumes using the
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please see the following error after switching to I want to point out that the main purpose of GitHub actions is to check that the code compiles and runs. |
||
| run: | | ||
| ninja --help || true | ||
|
|
||
| - name: CMake version | ||
| shell: cmd | ||
| run: | | ||
| cmake --version | ||
| cmake --help | ||
|
|
||
| - name: Configure CMake | ||
| shell: cmd | ||
| run: | | ||
| cmake --version | ||
|
|
||
| mkdir build | ||
| cd build | ||
| cmake -G Ninja -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=./install .. | ||
|
|
||
| - name: Build openfst for Windows x64 | ||
| shell: cmd | ||
| run: | | ||
| cd build | ||
| cmake --build . --config Release -- -j 6 | ||
| cmake --build . --config Release --target install -- -j 6 | ||
Uh oh!
There was an error while loading. Please reload this page.