diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fd19a494..23b11d828 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,14 @@ jobs: - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable + - name: Install nasm + run: choco install nasm + if: startsWith(matrix.os, 'windows') + + - name: Put nasm into PATH + run: echo "C:\Program Files\NASM" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + if: startsWith(matrix.os, 'windows') + - name: cargo build run: cargo build diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 000000000..e6d33aa01 --- /dev/null +++ b/Cross.toml @@ -0,0 +1,7 @@ +[build] +pre-build = [ + "ls /usr/local/bin", + "echo $PATH", + "xargo", + "cargo install bindgen-cli" +]