Skip to content

chore: another testing #3

chore: another testing

chore: another testing #3

Workflow file for this run

name: ci / build-windows (pull_request)
on:
workflow_call:
inputs:
branch:
required: true
type: string
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
update: true
install: >-
upx
base-devel
mingw-w64-x86_64-toolchain
make
cmake
upx
mingw-w64-x86_64-rust
mingw-w64-x86_64-postgresql
mingw-w64-x86_64-gcc
mingw-w64-x86_64-gcc-libs
mingw-w64-x86_64-libwinpthread-git
mingw-w64-x86_64-zlib
mingw-w64-x86_64-openssl
mingw-w64-x86_64-python
- name: Manually install UPX
run: msys2 -c 'pacman -S upx --noconfirm'
- name: Add UPX to PATH
run: echo "/c/msys64/usr/bin:$PATH" >> $GITHUB_PATH
- name: Verify UPX installation
run: upx --version
shell: msys2 {0}
.
- name: which upx

Check failure on line 48 in .github/workflows/windows-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/windows-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
run: which upx
shell: msys2 {0}
- name: Verify dependencies
run: |
which gcc g++ make cmake cargo upx rustc python
shell: msys2 {0}
- name: Updating submodules
run: git submodule update --init --recursive
- name: Creating tmp directory
run: mkdir -p tmp
- name: Building Nim
run: |
cd vendor/nimbus-build-system/vendor/Nim
./build_all.bat
cd ../../../..
- name: Building libunwind
run: |
cd vendor/nim-libbacktrace
make all V=1
make install/usr/lib/libunwind.a V=1
cp ./vendor/libunwind/build/lib/libunwind.a install/usr/lib
cd ../../
- name: Building miniupnpc
run: |
cd vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc
git checkout little_chore_windows_support
make -f Makefile.mingw CC=gcc CXX=g++ libminiupnpc.a V=1
cd ../../../../..
- name: Building libnatpmp
run: |
cd ./vendor/nim-nat-traversal/vendor/libnatpmp-upstream
make CC="gcc -fPIC -D_WIN32_WINNT=0x0600 -DNATPMP_STATICLIB" libnatpmp.a V=1
cd ../../../../
- name: Building wakunode2
run: |
make wakunode2 LOG_LEVEL=DEBUG V=1 -j8
- name: Check Executable
run: |
if [ -f "./build/wakunode2.exe" ]; then
echo "wakunode2.exe build successful"
else
echo "Build failed: wakunode2.exe not found"
exit 1
fi
shell: bash