mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-05 15:06:11 +00:00
Add mingw64 build to CI
This commit is contained in:
parent
57ec784983
commit
ed654de3d9
1 changed files with 46 additions and 0 deletions
46
.github/workflows/extra-builds.yml
vendored
46
.github/workflows/extra-builds.yml
vendored
|
|
@ -66,6 +66,51 @@ jobs:
|
||||||
--config Release
|
--config Release
|
||||||
--parallel
|
--parallel
|
||||||
|
|
||||||
|
mingw-build:
|
||||||
|
name: MINGW64 build
|
||||||
|
runs-on: windows-latest
|
||||||
|
needs: [pre_job]
|
||||||
|
if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Setup MSYS2 (MINGW64)
|
||||||
|
uses: msys2/setup-msys2@v2
|
||||||
|
with:
|
||||||
|
msystem: MINGW64
|
||||||
|
update: true
|
||||||
|
|
||||||
|
install: >-
|
||||||
|
base-devel
|
||||||
|
mingw-w64-x86_64-toolchain
|
||||||
|
mingw-w64-x86_64-cmake
|
||||||
|
mingw-w64-x86_64-gtest
|
||||||
|
mingw-w64-x86_64-pkgconf
|
||||||
|
mingw-w64-x86_64-python
|
||||||
|
mingw-w64-x86_64-tcl
|
||||||
|
mingw-w64-x86_64-libffi
|
||||||
|
mingw-w64-x86_64-git
|
||||||
|
|
||||||
|
msys2-install: >-
|
||||||
|
bison
|
||||||
|
flex
|
||||||
|
gawk
|
||||||
|
diffutils
|
||||||
|
make
|
||||||
|
|
||||||
|
- name: Build Yosys
|
||||||
|
shell: msys2 {0}
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
procs=$(nproc)
|
||||||
|
rm -rf build
|
||||||
|
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
|
||||||
|
cmake --build build -j${procs}
|
||||||
|
ctest --test-dir build/tests/unit --output-on-failure
|
||||||
|
|
||||||
wasi-build:
|
wasi-build:
|
||||||
name: WASI build
|
name: WASI build
|
||||||
needs: pre_job
|
needs: pre_job
|
||||||
|
|
@ -121,6 +166,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- vs-build
|
- vs-build
|
||||||
|
- mingw-build
|
||||||
- wasi-build
|
- wasi-build
|
||||||
- nix-build
|
- nix-build
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue