Run CI on windows, too (#7)

* Run CI on windows, too

* Build path without `concat!` macro

* Fix ci on windows
This commit is contained in:
Alexander Theißen
2022-01-31 11:03:18 +01:00
committed by GitHub
parent 374afe5700
commit 7c843842a7
2 changed files with 12 additions and 6 deletions
+6 -1
View File
@@ -51,7 +51,7 @@ jobs:
test:
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
toolchain: ["stable", "nightly"]
runs-on: ${{ matrix.os }}
steps:
@@ -62,6 +62,11 @@ jobs:
target: wasm32-unknown-unknown
toolchain: ${{ matrix.toolchain }}
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
- name: Cargo build
+6 -5
View File
@@ -21,14 +21,15 @@ fn dump<P: AsRef<Path>>(path: P, buf: &[u8]) -> io::Result<()> {
}
fn run_diff_test<F: FnOnce(&[u8]) -> Vec<u8>>(test_dir: &str, name: &str, test: F) {
// FIXME: not going to work on windows?
let mut fixture_path = PathBuf::from(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/fixtures/",));
let mut fixture_path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
fixture_path.push("tests");
fixture_path.push("fixtures");
fixture_path.push(test_dir);
fixture_path.push(name);
// FIXME: not going to work on windows?
let mut expected_path =
PathBuf::from(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/expectations/"));
let mut expected_path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
expected_path.push("tests");
expected_path.push("expectations");
expected_path.push(test_dir);
expected_path.push(name);