Files
iroh/.github/workflows/wine.yaml
T
Workflow config file is invalid. Please check your config file: interpolate runs-on for job "wine_test": Cannot parse non-string type invalid as JSON
Asmir Avdicevic c08ccf80af chore(ci): introduce alt runners (#4164)
## Description

We've signed up with blacksmith for a trial run to test out if the added
bandwidth helps our queue times. I've selectively converted some but not
all of the jobs. Will do similar on noq.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist
<!-- Remove any that are not relevant. -->
- [ ] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
- [ ] List all breaking changes in the above "Breaking Changes" section.
- [ ] Open an issue or PR on any number0 repos that are affected by this
breaking change. Give guidance on how the updates should be handled or
do the actual updates themselves. The major ones are:
    - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc)
    - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip)
    - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs)
    - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe)
    - [ ] [`sendme`](https://github.com/n0-computer/sendme)

<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/n0-computer/codesmith/iroh/pr/4164"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-in-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-in-codesmith-light.svg"><img
alt="View in Codesmith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-in-codesmith-dark.svg"></picture></a>
<sup>Codesmith can help with this PR — just tag <code>@codesmith</code>
or enable autofix.</sup>

- [ ] Autofix CI and bot reviews
<!-- /codesmith:footer -->
2026-04-23 15:47:49 +02:00

70 lines
2.1 KiB
YAML

name: Wine Tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: wine-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUSTFLAGS: -Dwarnings
jobs:
pick-runner:
uses: "./.github/workflows/pick-runner.yml"
with:
min_free_runners: 3
secrets:
RUNNER_READ_TOKEN: ${{ secrets.RUNNER_READ_TOKEN }}
wine_test:
name: Wine Sanity Check
needs: pick-runner
runs-on: ${{ fromJSON(needs.pick-runner.outputs.overflow_1) }}
# runs-on: [self-hosted, linux, X64]
steps:
- uses: actions/checkout@v6
- name: Install Wine
run: |
# Use WineHQ for newer Wine with bcryptprimitives.dll support
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -cs)/winehq-$(lsb_release -cs).sources
sudo apt-get update
sudo apt-get install -y --install-recommends winehq-stable || sudo apt-get install -y wine64 wine32
# Initialize Wine prefix
WINEARCH=win64 wineboot --init
- name: Install Rust + mingw target
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-gnu
- name: Install mingw-w64
run: sudo apt-get install -y mingw-w64
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Build tests
# Release mode required - debug builds exceed mingw's export ordinal limit (~65k symbols)
run: cargo build --target x86_64-pc-windows-gnu --tests -p iroh --release
- name: Run tests under Wine
env:
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER: wine
run: >
cargo nextest run
--target x86_64-pc-windows-gnu
--profile wine
--release
-p iroh