From a9369ad0ee500d5b0ed38c19ba1fa7c034e3955e Mon Sep 17 00:00:00 2001 From: ko1N Date: Fri, 1 Jan 2021 03:21:04 +0100 Subject: [PATCH] Added mingw path to ci --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 91fc03f..4444331 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,11 +17,17 @@ jobs: uses: crazy-max/ghaction-chocolatey@master with: args: install llvm + - name: add clang path to $PATH env + shell: bash + run: echo "PATH=$PATH:C:\msys64\mingw64\bin" >> $GITHUB_ENV - name: build + shell: bash run: cargo build --workspace --verbose - name: run tests + shell: bash run: cargo test --workspace --verbose - name: build examples + shell: bash run: cargo build --workspace --examples --verbose build-ubuntu: @@ -50,7 +56,7 @@ jobs: curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci source ./macports-ci install - name: install libusb-1.0 - run: sudo port -vs install libusb libusb-devel + run: sudo port -vs install libusb-devel - name: build run: cargo build --workspace --verbose - name: run tests @@ -64,6 +70,8 @@ jobs: - uses: actions/checkout@v2 with: submodules: 'true' + - name: install libusb-1.0 + run: sudo apt-get install libusb-1.0-0-dev - run: rustup component add clippy - name: check formatting run: cargo fmt -- --check