Add DLT file transfer packages #128
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: cargo build and test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
build: | |
- linux-stable | |
- linux-32bit-stable | |
- linux-beta | |
- linux-nightly | |
- macos-stable | |
- win-msvc-stable | |
- win-gnu-stable | |
include: | |
- build: linux-stable | |
os: ubuntu-latest | |
rust: stable | |
- build: linux-32bit-stable | |
os: ubuntu-latest | |
rust: stable | |
target: i686-unknown-linux-gnu | |
- build: linux-beta | |
os: ubuntu-latest | |
rust: beta | |
- build: linux-nightly | |
os: ubuntu-latest | |
rust: nightly | |
- build: macos-stable | |
os: macos-latest | |
rust: stable | |
- build: win-msvc-stable | |
os: windows-latest | |
rust: stable | |
- build: win-gnu-stable | |
os: windows-latest | |
rust: stable-x86_64-gnu | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: cargo build | |
if: matrix.target == '' | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
- name: cross build | |
if: matrix.target != '' | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: build | |
args: --target ${{ matrix.target }} | |
- name: cargo test | |
if: matrix.target == '' | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
- name: cross test | |
if: matrix.target != '' | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: test | |
args: --target ${{ matrix.target }} | |
- name: cargo build --no-default-features | |
if: matrix.target == '' | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --no-default-features | |
- name: cross build --no-default-features | |
if: matrix.target != '' | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: build | |
args: --target ${{ matrix.target }} --no-default-features | |
- name: cargo test --no-default-features | |
if: matrix.target == '' | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --no-default-features | |
- name: cross test --no-default-features | |
if: matrix.target != '' | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: test | |
args: --target ${{ matrix.target }} --no-default-features | |
- name: cargo build --features serde | |
if: matrix.target == '' | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --features serde | |
- name: cross build --features serde | |
if: matrix.target != '' | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: build | |
args: --target ${{ matrix.target }} --features serde | |
- name: cargo test --features serde | |
if: matrix.target == '' | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features serde | |
- name: cross test --features serde | |
if: matrix.target != '' | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: test | |
args: --target ${{ matrix.target }} --features serde | |
no_std_build: | |
name: no_std build | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./ensure_no_std | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
target: x86_64-unknown-none | |
override: true | |
- run: cargo build --target x86_64-unknown-none |