|
|
@ -17,11 +17,17 @@ jobs:
|
|
|
|
uses: crazy-max/ghaction-chocolatey@master
|
|
|
|
uses: crazy-max/ghaction-chocolatey@master
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
args: install llvm
|
|
|
|
args: install llvm
|
|
|
|
|
|
|
|
- name: add clang path to $PATH env
|
|
|
|
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
run: echo "PATH=$PATH:C:\msys64\mingw64\bin" >> $GITHUB_ENV
|
|
|
|
- name: build
|
|
|
|
- name: build
|
|
|
|
|
|
|
|
shell: bash
|
|
|
|
run: cargo build --workspace --verbose
|
|
|
|
run: cargo build --workspace --verbose
|
|
|
|
- name: run tests
|
|
|
|
- name: run tests
|
|
|
|
|
|
|
|
shell: bash
|
|
|
|
run: cargo test --workspace --verbose
|
|
|
|
run: cargo test --workspace --verbose
|
|
|
|
- name: build examples
|
|
|
|
- name: build examples
|
|
|
|
|
|
|
|
shell: bash
|
|
|
|
run: cargo build --workspace --examples --verbose
|
|
|
|
run: cargo build --workspace --examples --verbose
|
|
|
|
|
|
|
|
|
|
|
|
build-ubuntu:
|
|
|
|
build-ubuntu:
|
|
|
@ -50,7 +56,7 @@ jobs:
|
|
|
|
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci
|
|
|
|
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci
|
|
|
|
source ./macports-ci install
|
|
|
|
source ./macports-ci install
|
|
|
|
- name: install libusb-1.0
|
|
|
|
- name: install libusb-1.0
|
|
|
|
run: sudo port -vs install libusb libusb-devel
|
|
|
|
run: sudo port -vs install libusb-devel
|
|
|
|
- name: build
|
|
|
|
- name: build
|
|
|
|
run: cargo build --workspace --verbose
|
|
|
|
run: cargo build --workspace --verbose
|
|
|
|
- name: run tests
|
|
|
|
- name: run tests
|
|
|
@ -64,6 +70,8 @@ jobs:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
submodules: 'true'
|
|
|
|
submodules: 'true'
|
|
|
|
|
|
|
|
- name: install libusb-1.0
|
|
|
|
|
|
|
|
run: sudo apt-get install libusb-1.0-0-dev
|
|
|
|
- run: rustup component add clippy
|
|
|
|
- run: rustup component add clippy
|
|
|
|
- name: check formatting
|
|
|
|
- name: check formatting
|
|
|
|
run: cargo fmt -- --check
|
|
|
|
run: cargo fmt -- --check
|
|
|
|