Skip to content

Commit

Permalink
Re-enable xwin test on CI (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
messense authored Dec 21, 2024
1 parent 21f2e3a commit 4656df4
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-24.04, macos-latest, windows-latest]
toolchain: [stable, nightly]
cross-compiler: [clang-cl, clang]
env:
Expand All @@ -40,24 +40,23 @@ jobs:
submodules: true
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Install dependencies
if: matrix.os == 'macos-latest'
if: startsWith(matrix.os, 'macos')
run: |
brew install gnu-tar llvm
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install --quiet -y clang wine-stable winetricks
winetricks nocrashdialog
sudo apt-get install --quiet -y clang wine-stable
- name: Install Clang
if: matrix.os == 'windows-latest'
if: startsWith(matrix.os, 'windows')
run: choco install -y llvm
- uses: dtolnay/rust-toolchain@master
id: rustup
with:
toolchain: ${{ matrix.toolchain }}
components: llvm-tools-preview
components: llvm-tools
- name: Cache cargo build
uses: Swatinem/rust-cache@v2
- name: Cache test crates cargo build
Expand All @@ -81,14 +80,13 @@ jobs:
# Test CMake support
cargo run --release xwin build --target x86_64-pc-windows-msvc --manifest-path tests/crfsuite-rs/Cargo.toml
- name: xwin run - x86_64
if: matrix.os == 'ubuntu-latest'
if: startsWith(matrix.os, 'ubuntu')
run: |
cargo run --release xwin run --target x86_64-pc-windows-msvc --manifest-path tests/hello-windows/Cargo.toml
# xwin test requires newer wine version
# - name: xwin test - x86_64
# if: matrix.os == 'ubuntu-latest'
# run: |
# cargo run --release xwin test --target x86_64-pc-windows-msvc --manifest-path tests/hello-windows/Cargo.toml
- name: xwin test - x86_64
if: startsWith(matrix.os, 'ubuntu')
run: |
cargo run --release xwin test --target x86_64-pc-windows-msvc --manifest-path tests/hello-windows/Cargo.toml
- name: xwin build - aarch64
run: |
rustup target add aarch64-pc-windows-msvc
Expand Down

0 comments on commit 4656df4

Please sign in to comment.