GH: Waku windows build configuration (#432)
* Update binutils for windows * Create mingw-env action and move configuration there * Use cc and cxx vars for gowaku * Use go 1.20 for waku
This commit is contained in:
parent
2ceba073c0
commit
0eae715f8d
|
@ -0,0 +1,22 @@
|
||||||
|
# Adapting https://github.com/microsoft/windows-rs/blob/master/.github/actions/fix-environment/action.yml
|
||||||
|
# for waku windows builds to use desired binutils version.
|
||||||
|
name: Fix environment
|
||||||
|
description: GitHub VMs aren't configured correctly
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Update binutils (Windows)
|
||||||
|
uses: msys2/setup-msys2@v2
|
||||||
|
with:
|
||||||
|
msystem: mingw64
|
||||||
|
update: true
|
||||||
|
pacboy: binutils
|
||||||
|
- name: Configure CC and CXX for GNU
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
"CC=x86_64-w64-mingw32-gcc" >> $env.GITHUB_ENV
|
||||||
|
"CXX=x86_64-w64-mingw32-g++" >> $env.GITHUB_ENV
|
||||||
|
- name: Configure environment
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
"C:\msys64\mingw64\bin" >> $env:GITHUB_PATH
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions/setup-go@v3 # we need go to build go-waku
|
- uses: actions/setup-go@v3 # we need go to build go-waku
|
||||||
with:
|
with:
|
||||||
go-version: '1.19'
|
go-version: '1.20'
|
||||||
# Setup Rust toolchain with GNU for Windows
|
# Setup Rust toolchain with GNU for Windows
|
||||||
- name: Setup Rust with GNU toolchain (Windows)
|
- name: Setup Rust with GNU toolchain (Windows)
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
|
@ -61,6 +61,10 @@ jobs:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
|
# Setup build environment (Windows)
|
||||||
|
- name: Setup build environment (Windows)
|
||||||
|
if: matrix.os == 'windows-latest'
|
||||||
|
uses: ./.github/actions/mingw-env
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
|
|
Loading…
Reference in New Issue