Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test arm #5

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
d1d7aee
test arm
commial Jul 24, 2020
fc5f3fd
Update rust.yml
commial Jul 24, 2020
550f646
Update rust.yml
commial Jul 24, 2020
a77ad8d
Update rust.yml
commial Jul 24, 2020
c9d07cc
Update rust.yml
commial Jul 24, 2020
38df709
Update rust.yml
commial Jul 24, 2020
28c5476
Update rust.yml
commial Jul 24, 2020
5ac765a
Update rust.yml
commial Jul 24, 2020
5ee3c26
install
commial Jul 24, 2020
8008349
Update rust.yml
commial Jul 24, 2020
1f9cbfa
Update rust.yml
commial Jul 24, 2020
10375f5
Update rust.yml
commial Jul 24, 2020
b639eea
Update rust.yml
commial Jul 24, 2020
9beb56b
Update rust.yml
commial Jul 24, 2020
cd902c8
Update rust.yml
commial Jul 24, 2020
24a5531
Update rust.yml
commial Jul 24, 2020
b1b3fd9
Update rust.yml
commial Jul 24, 2020
c9c35ee
Merge branch 'master' into test-arm
commial Jul 24, 2020
32cf48c
Update rust.yml
commial Jul 24, 2020
bfc8817
Update rust.yml
commial Jul 24, 2020
e40aeac
Update rust.yml
commial Jul 27, 2020
0948235
Update rust.yml
commial Jul 27, 2020
205cc0e
Update rust.yml
commial Jul 27, 2020
83fa131
Update rust.yml
commial Jul 27, 2020
9ccc681
Update rust.yml
commial Jul 27, 2020
f02419a
Update rust.yml
commial Jul 27, 2020
b7e1fb5
Update rust.yml
commial Jul 27, 2020
7be344f
Update rust.yml
commial Jul 27, 2020
ef6ac44
Update rust.yml
commial Jul 27, 2020
8412704
Update rust.yml
commial Jul 27, 2020
d5624c9
Update rust.yml
commial Jul 27, 2020
544dc40
Update rust.yml
commial Jul 27, 2020
d59def4
Update rust.yml
commial Jul 27, 2020
291acd1
Update rust.yml
commial Jul 27, 2020
11c6984
Update rust.yml
commial Jul 27, 2020
f7fe595
Update rust.yml
commial Jul 27, 2020
be3a0af
Update rust.yml
commial Jul 27, 2020
0f2d85d
Update rust.yml
commial Jul 27, 2020
202f01a
Update rust.yml
commial Jul 27, 2020
2ccca11
Update rust.yml
commial Jul 27, 2020
a009f00
Update rust.yml
commial Jul 27, 2020
a3b2d8a
Update rust.yml
commial Jul 27, 2020
fff3037
Update rust.yml
commial Jul 27, 2020
dfbd3ae
Update rust.yml
commial Jul 27, 2020
3334806
Update rust.yml
commial Jul 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 56 additions & 55 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,69 +4,70 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features --all --exclude mla-fuzz-afl --verbose
- name: Run tests
run: cargo test --all --exclude mla-fuzz-afl --release --verbose

afl-build:

# For some reasons, matrix cannot be used in "uses" statement, so duplicate it
build-arm64:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install dependencies
run: sudo apt-get install llvm
- name: Install cargo-afl binary crate
uses: actions-rs/[email protected]
with:
crate: afl
version: latest
use-tool-cache: true
- name: Test AFL build
run: cargo afl build
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset

- uses: docker://multiarch/ubuntu-core:arm64-bionic
with:
args: "uname -a"

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
- uses: actions/checkout@v1

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: Check format
run: cargo fmt --all -- --check
target: aarch64-unknown-linux-gnu

- name: Install dependencies
run: sudo apt-get install gcc-aarch64-linux-gnu

- name: Cross-build
env:
RUSTFLAGS: -C linker=aarch64-linux-gnu-gcc
CARGO_BUILD_DEP_INFO_BASEDIR: .
run: cargo build --target aarch64-unknown-linux-gnu --all --release --exclude mla-fuzz-afl --verbose

- name: Cross-build tests
env:
RUSTFLAGS: -C linker=aarch64-linux-gnu-gcc
CARGO_BUILD_DEP_INFO_BASEDIR: .
run: cargo test --no-run --target aarch64-unknown-linux-gnu --all --release --exclude mla-fuzz-afl --verbose

- name: Backup Cargo cache for later use
run: echo ~/.cargo/registry && mv ~/.cargo/registry /home/runner/work/_temp/_github_home/registry_cache

- name: DEBUG
run: pwd && ls -ahl && ls -ahl /usr/share/rust/.cargo

- uses: docker://multiarch/ubuntu-core:arm64-bionic
with:
args: >
bash -c
"set -x &&
echo 'Install rust components' &&
apt-get update &&
apt-get install -y curl llvm build-essential &&
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/install.sh &&
chmod +x /tmp/install.sh &&
/tmp/install.sh -y &&
echo 'Current toolchain:' &&
source $HOME/.cargo/env &&
rustup show &&
echo 'Get back cache' &&
mkdir -p /home/runner/work/MLA/MLA &&
mv ./target /home/runner/work/MLA/MLA &&
pwd && ls -ahl && ls -ahl ~/.cargo && mv ~/registry_cache ~/.cargo/registry && ls -ahl /home/runner/work/MLA/MLA/target/aarch64-unknown-linux-gnu &&
echo 'Launch tests' &&
CARGO_BUILD_TARGET_DIR=/home/runner/work/MLA/MLA/target/aarch64-unknown-linux-gnu CARGO_BUILD_DEP_INFO_BASEDIR=\".\" cargo test --frozen --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu"

audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Security audit
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}