Skip to content

Commit

Permalink
fixup! [#70236] Add windows tests to gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalMyczkowski committed Jan 17, 2025
1 parent 98980dc commit b9977a4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get -qqy update && sudo apt-get install -qqy cmake clang git make autoconf mingw-w64 g++-mingw-w64-x86-64
sudo apt-get -qqy update
sudo apt-get -qqy upgrade && sudo apt-get install -qqy cmake clang git make autoconf mingw-w64
- name: Fetch SystemC repo
run: |
Expand All @@ -100,11 +101,16 @@ jobs:
run: |
mkdir -p artifacts/systemc_windows
pushd systemc
sed -i 's/# include <Windows\.h>/#include <windows.h>/g' src/sysc/kernel/sc_cmnhdr.h
mkdir -p build
pushd build
cmake .. -DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc-posix \
-DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++-posix \
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
-DMSVC=true \
-DCMAKE_CXX_STANDARD=14 \
-DCMAKE_THREAD_LIBS_INIT="-lpthread" \
-DCMAKE_INSTALL_PREFIX=$(pwd)/../install
Expand All @@ -125,13 +131,13 @@ jobs:
popd
popd
- name: Upload systemc for windows
- name: Upload systemC for Windows
uses: actions/upload-artifact@v4
with:
name: systemc_windows-${{ github.run_id }}
path: artifacts/systemc_windows

- name: Upload systemc for linux
- name: Upload systemC for Linux
uses: actions/upload-artifact@v4
with:
name: systemc_linux-${{ github.run_id }}
Expand Down

0 comments on commit b9977a4

Please sign in to comment.