From d1d7aee4ac6afc7bdfa8d7032f9e8977747c481a Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 14:55:40 +0200 Subject: [PATCH 01/44] test arm --- .github/workflows/rust.yml | 54 ++++---------------------------------- 1 file changed, 5 insertions(+), 49 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0574882..1bbf352 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,56 +11,12 @@ env: jobs: build: - runs-on: ubuntu-latest - 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: - runs-on: ubuntu-latest + - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - 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/install@v0.1 - with: - crate: afl - version: latest - use-tool-cache: true - - name: Test AFL build - run: cargo afl build + - 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: - toolchain: stable - components: rustfmt - - name: Check format - run: cargo fmt --all -- --check - audit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Security audit - uses: actions-rs/audit-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v1 From fc5f3fd866970e945a1a8f2ab2627dc988837d4a Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:06:43 +0200 Subject: [PATCH 02/44] Update rust.yml Arm64 --- .github/workflows/rust.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1bbf352..3d46286 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,3 +20,11 @@ jobs: args: 'uname -a' - uses: actions/checkout@v1 + + - uses: docker://arm64v8/rust:latest + with: + args: > + bash -c + "ls && + cargo build --release --verbose --all --exclude mla-fuzz-afl && + cargo test --release --verbose --all --exclude mla-fuzz-afl" From 550f6467ed249c799df3a254c53ae3ccf1adb289 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:09:36 +0200 Subject: [PATCH 03/44] Update rust.yml uname on arm --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3d46286..66c64da 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -15,7 +15,7 @@ jobs: steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: docker://multiarch/ubuntu-core:arm64-bionic + - uses: docker://arm64v8/rust:latest with: args: 'uname -a' From a77ad8d7544ea3a04df7beab742c034aa5824791 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:11:56 +0200 Subject: [PATCH 04/44] Update rust.yml uname with path --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 66c64da..4f8d771 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,7 +17,7 @@ jobs: - uses: docker://arm64v8/rust:latest with: - args: 'uname -a' + args: '/usr/bin/uname -a' - uses: actions/checkout@v1 From c9d07ccfd2c92c19a9f89959c82a2df7d6adb126 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:15:43 +0200 Subject: [PATCH 05/44] Update rust.yml back to bionic --- .github/workflows/rust.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4f8d771..8527998 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -14,17 +14,18 @@ jobs: runs-on: ubuntu-latest steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - - uses: docker://arm64v8/rust:latest + + - uses: docker://multiarch/ubuntu-core:arm64-bionic with: - args: '/usr/bin/uname -a' + args: "uname -a" - uses: actions/checkout@v1 - - uses: docker://arm64v8/rust:latest + - uses: docker://multiarch/ubuntu-core:arm64-bionic with: args: > bash -c - "ls && + "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh && + rustup show && cargo build --release --verbose --all --exclude mla-fuzz-afl && cargo test --release --verbose --all --exclude mla-fuzz-afl" From 38df7093c6418c72be9f3789b09f67130a04cb4a Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:16:30 +0200 Subject: [PATCH 06/44] Update rust.yml dummy commit for updt --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8527998..2c07b16 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -4,7 +4,7 @@ on: push: branches: [ master ] pull_request: - branches: [ master ] + branches: [ master ] env: CARGO_TERM_COLOR: always From 28c5476d4bdeccb0470baf45ddba24b544b43ce8 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:17:49 +0200 Subject: [PATCH 07/44] Update rust.yml install curl --- .github/workflows/rust.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2c07b16..3ed573f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,7 +25,9 @@ jobs: with: args: > bash -c - "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh && + "apt-get update && + apt-get install -y curl && + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh && rustup show && cargo build --release --verbose --all --exclude mla-fuzz-afl && cargo test --release --verbose --all --exclude mla-fuzz-afl" From 5ac765a28b7a99686b9f04eef986f6e07df1433e Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:18:28 +0200 Subject: [PATCH 08/44] Update rust.yml dumy updt --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3ed573f..e496157 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -4,7 +4,7 @@ on: push: branches: [ master ] pull_request: - branches: [ master ] + branches: [ master ] env: CARGO_TERM_COLOR: always From 5ee3c2676e0478f90a777d1c60990b93e4b5a8bd Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:20:45 +0200 Subject: [PATCH 09/44] install --- .github/workflows/rust.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e496157..868ae13 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,7 +27,9 @@ jobs: bash -c "apt-get update && apt-get install -y curl && - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh && + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/install.sh && + chmod +x /tmp/install.sh && + /tmp/install.sh -y && rustup show && cargo build --release --verbose --all --exclude mla-fuzz-afl && cargo test --release --verbose --all --exclude mla-fuzz-afl" From 80083499ebb76254d1d8fdbb5b0747f602c36b29 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:25:55 +0200 Subject: [PATCH 10/44] Update rust.yml dumy --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 868ae13..045b818 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -4,7 +4,7 @@ on: push: branches: [ master ] pull_request: - branches: [ master ] + branches: [ master ] env: CARGO_TERM_COLOR: always From 1f9cbfa1e346208d0bb86e3097472dd6b6ffb661 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:34:41 +0200 Subject: [PATCH 11/44] Update rust.yml source --- .github/workflows/rust.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 045b818..c670449 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,6 +30,7 @@ jobs: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/install.sh && chmod +x /tmp/install.sh && /tmp/install.sh -y && + source $HOME/.cargo/env && rustup show && cargo build --release --verbose --all --exclude mla-fuzz-afl && cargo test --release --verbose --all --exclude mla-fuzz-afl" From 10375f55fb56d44af4d3a3fef76d7cd711f72a37 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:39:58 +0200 Subject: [PATCH 12/44] Update rust.yml Add a compiler --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c670449..fc628b7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -26,7 +26,7 @@ jobs: args: > bash -c "apt-get update && - apt-get install -y curl && + apt-get install -y curl llvm && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/install.sh && chmod +x /tmp/install.sh && /tmp/install.sh -y && From b639eea2376aabdce8502aef00ab06da0e541d87 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:44:13 +0200 Subject: [PATCH 13/44] Update rust.yml build-essential --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fc628b7..9ca824e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -26,7 +26,7 @@ jobs: args: > bash -c "apt-get update && - apt-get install -y curl llvm && + 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 && From 9beb56bcdf73beba542ed13078e72d4034eba2cf Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:46:56 +0200 Subject: [PATCH 14/44] Update rust.yml set -x --- .github/workflows/rust.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9ca824e..3c639d2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,7 +25,8 @@ jobs: with: args: > bash -c - "apt-get update && + "set-x && + 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 && From cd902c8eff1f60994edf7e19aace745bf533d3bf Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 15:47:38 +0200 Subject: [PATCH 15/44] Update rust.yml typo --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3c639d2..7d6628b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,7 +25,7 @@ jobs: with: args: > bash -c - "set-x && + "set -x && 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 && From 24a55312359fb629576bf90768e1fdcc05c376dc Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 18:54:16 +0200 Subject: [PATCH 16/44] Update rust.yml Add a cache --- .github/workflows/rust.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7d6628b..160be93 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,6 +20,15 @@ jobs: args: "uname -a" - uses: actions/checkout@v1 + + - name: Cache crates compilation + uses: actions/cache@v2 + env: + cache-name: cache-crates-compilation + with: + # cargo cache files are stored in `target/release` + path: target/release + key: build-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }} - uses: docker://multiarch/ubuntu-core:arm64-bionic with: From b1b3fd969935a78085d8e62fc84f84e311c44765 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 20:31:58 +0200 Subject: [PATCH 17/44] Update rust.yml Test cache --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 160be93..10263d5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -15,7 +15,7 @@ jobs: steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: docker://multiarch/ubuntu-core:arm64-bionic + - uses: docker://multiarch/ubuntu-core:arm64-bionic with: args: "uname -a" From 32cf48c4c0cd8e97f583dc12a78f59313cfb6dce Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 20:39:09 +0200 Subject: [PATCH 18/44] Update rust.yml update cache --- .github/workflows/rust.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4008c0c..a0744a7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -28,8 +28,10 @@ jobs: cache-name: cache-crates-compilation with: # cargo cache files are stored in `target/release` - path: target/release + path: target key: build-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }} + restore-keys: | + build-${{ env.cache-name }}- - uses: docker://multiarch/ubuntu-core:arm64-bionic with: From bfc88173102f5243d55ca2b390dc8356d06f7bb9 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Fri, 24 Jul 2020 21:42:14 +0200 Subject: [PATCH 19/44] Update rust.yml test --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a0744a7..378a2b0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,7 +16,7 @@ jobs: steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: docker://multiarch/ubuntu-core:arm64-bionic + - uses: docker://multiarch/ubuntu-core:arm64-bionic with: args: "uname -a" From e40aeac9f7336f294e9be3a204283173af08b002 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 09:53:10 +0200 Subject: [PATCH 20/44] Update rust.yml armhf and arm64 --- .github/workflows/rust.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 378a2b0..4725771 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,11 +12,15 @@ env: jobs: build: runs-on: ubuntu-latest + + strategy: + matrix: + arch: [arm64, armhf] steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: docker://multiarch/ubuntu-core:arm64-bionic + - uses: docker://multiarch/ubuntu-core:${{ matrix.arch }}-bionic with: args: "uname -a" @@ -29,21 +33,24 @@ jobs: with: # cargo cache files are stored in `target/release` path: target - key: build-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }} + key: build-${{ env.cache-name }}-${{ matrix.arch }}-${{ hashFiles('**/Cargo.toml') }} restore-keys: | - build-${{ env.cache-name }}- + build-${{ env.cache-name }}-${{ matrix.arch }}- - - uses: docker://multiarch/ubuntu-core:arm64-bionic + - uses: docker://multiarch/ubuntu-core:${{ matrix.arch }}-bionic with: args: > bash -c "set -x && + # 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 && + # Show the current toolchain && source $HOME/.cargo/env && rustup show && + # Launch build and tests && cargo build --release --verbose --all --exclude mla-fuzz-afl && cargo test --release --verbose --all --exclude mla-fuzz-afl" From 0948235ddfeccf3c4e8347ce3d8d22033c8c3c6e Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 09:54:43 +0200 Subject: [PATCH 21/44] Update rust.yml arch -> build --- .github/workflows/rust.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4725771..ff5a4d3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -15,12 +15,12 @@ jobs: strategy: matrix: - arch: [arm64, armhf] + build: [arm64, armhf] steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: docker://multiarch/ubuntu-core:${{ matrix.arch }}-bionic + - uses: docker://multiarch/ubuntu-core:${{ matrix.build }}-bionic with: args: "uname -a" @@ -33,11 +33,11 @@ jobs: with: # cargo cache files are stored in `target/release` path: target - key: build-${{ env.cache-name }}-${{ matrix.arch }}-${{ hashFiles('**/Cargo.toml') }} + key: build-${{ env.cache-name }}-${{ matrix.build }}-${{ hashFiles('**/Cargo.toml') }} restore-keys: | - build-${{ env.cache-name }}-${{ matrix.arch }}- + build-${{ env.cache-name }}-${{ matrix.build }}- - - uses: docker://multiarch/ubuntu-core:${{ matrix.arch }}-bionic + - uses: docker://multiarch/ubuntu-core:${{ matrix.build }}-bionic with: args: > bash -c From 205cc0e2381918578314e8ae8fd4ab61a06523fe Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 09:59:07 +0200 Subject: [PATCH 22/44] Update rust.yml build -> os --- .github/workflows/rust.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ff5a4d3..b9490aa 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -15,12 +15,12 @@ jobs: strategy: matrix: - build: [arm64, armhf] + os: [arm64, armhf] steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: docker://multiarch/ubuntu-core:${{ matrix.build }}-bionic + - uses: docker://multiarch/ubuntu-core:${{ matrix.os }}-bionic with: args: "uname -a" @@ -33,11 +33,11 @@ jobs: with: # cargo cache files are stored in `target/release` path: target - key: build-${{ env.cache-name }}-${{ matrix.build }}-${{ hashFiles('**/Cargo.toml') }} + key: build-${{ env.cache-name }}-${{ matrix.os }}-${{ hashFiles('**/Cargo.toml') }} restore-keys: | - build-${{ env.cache-name }}-${{ matrix.build }}- + build-${{ env.cache-name }}-${{ matrix.os }}- - - uses: docker://multiarch/ubuntu-core:${{ matrix.build }}-bionic + - uses: docker://multiarch/ubuntu-core:${{ matrix.os }}-bionic with: args: > bash -c From 83fa1317322e345655a2188936ad463902af05f1 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 10:00:55 +0200 Subject: [PATCH 23/44] Update rust.yml --- .github/workflows/rust.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b9490aa..fcc6025 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,11 +11,13 @@ env: jobs: build: - runs-on: ubuntu-latest strategy: matrix: - os: [arm64, armhf] + os: + - arm64 + - armhf + runs-on: ubuntu-latest steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset From 9ccc6818ff67f238524a4977f9aea7a181e263a1 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 10:03:23 +0200 Subject: [PATCH 24/44] Update rust.yml --- .github/workflows/rust.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fcc6025..2ff61a3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,18 +11,19 @@ env: jobs: build: - strategy: matrix: - os: - - arm64 - - armhf + build: [armfh, arm64] + include: + - build: armfh + - build: arm64 + runs-on: ubuntu-latest steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: docker://multiarch/ubuntu-core:${{ matrix.os }}-bionic + - uses: docker://multiarch/ubuntu-core:${{ matrix.build }}-bionic with: args: "uname -a" @@ -35,11 +36,11 @@ jobs: with: # cargo cache files are stored in `target/release` path: target - key: build-${{ env.cache-name }}-${{ matrix.os }}-${{ hashFiles('**/Cargo.toml') }} + key: build-${{ env.cache-name }}-${{ matrix.build }}-${{ hashFiles('**/Cargo.toml') }} restore-keys: | - build-${{ env.cache-name }}-${{ matrix.os }}- + build-${{ env.cache-name }}-${{ matrix.build }}- - - uses: docker://multiarch/ubuntu-core:${{ matrix.os }}-bionic + - uses: docker://multiarch/ubuntu-core:${{ matrix.build }}-bionic with: args: > bash -c From f02419af7a1cb5e3001a744ab2d4e1c9dc03262f Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 10:04:20 +0200 Subject: [PATCH 25/44] Update rust.yml --- .github/workflows/rust.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2ff61a3..e51d3b5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -23,7 +23,8 @@ jobs: steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: docker://multiarch/ubuntu-core:${{ matrix.build }}-bionic + - name: ${{ matrix.build }} + uses: docker://multiarch/ubuntu-core:${{ matrix.build }}-bionic with: args: "uname -a" From b7e1fb542759f919d63ff9a0c101ed3a4a5cfbca Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 10:07:38 +0200 Subject: [PATCH 26/44] Update rust.yml --- .github/workflows/rust.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e51d3b5..e69c6ca 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,7 +16,9 @@ jobs: build: [armfh, arm64] include: - build: armfh + image: docker://multiarch/ubuntu-core:armfh-bionic - build: arm64 + image: docker://multiarch/ubuntu-core:arm64-bionic runs-on: ubuntu-latest @@ -24,7 +26,7 @@ jobs: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - name: ${{ matrix.build }} - uses: docker://multiarch/ubuntu-core:${{ matrix.build }}-bionic + uses: ${{ matrix.image }} with: args: "uname -a" From 7be344ffe6a8092852c4643e3577debaa7eb97b0 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 10:11:22 +0200 Subject: [PATCH 27/44] Update rust.yml --- .github/workflows/rust.yml | 61 +++++++++++++++++++++++++++++--------- 1 file changed, 47 insertions(+), 14 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e69c6ca..3f42cc7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,23 +10,55 @@ env: CARGO_TERM_COLOR: always jobs: - build: - strategy: - matrix: - build: [armfh, arm64] - include: - - build: armfh - image: docker://multiarch/ubuntu-core:armfh-bionic - - build: arm64 - image: docker://multiarch/ubuntu-core:arm64-bionic + build-armfh: + runs-on: ubuntu-latest + steps: + - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset + + - uses: docker://multiarch/ubuntu-core:armfh-bionic + with: + args: "uname -a" + + - uses: actions/checkout@v1 + + - name: Cache crates compilation + uses: actions/cache@v2 + env: + cache-name: cache-crates-compilation + with: + # cargo cache files are stored in `target/release` + path: target + key: build-${{ env.cache-name }}-armfh-${{ hashFiles('**/Cargo.toml') }} + restore-keys: | + build-${{ env.cache-name }}-armfh- + + - uses: docker://multiarch/ubuntu-core:armfh-bionic + with: + args: > + bash -c + "set -x && + # 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 && + # Show the current toolchain && + source $HOME/.cargo/env && + rustup show && + # Launch build and tests && + cargo build --release --verbose --all --exclude mla-fuzz-afl && + cargo test --release --verbose --all --exclude mla-fuzz-afl" + + # For some reasons, matrix cannot be used in "uses" statement, so duplicate it + build-arm64: runs-on: ubuntu-latest steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - name: ${{ matrix.build }} - uses: ${{ matrix.image }} + - uses: docker://multiarch/ubuntu-core:arm64-bionic with: args: "uname -a" @@ -39,11 +71,11 @@ jobs: with: # cargo cache files are stored in `target/release` path: target - key: build-${{ env.cache-name }}-${{ matrix.build }}-${{ hashFiles('**/Cargo.toml') }} + key: build-${{ env.cache-name }}-arm64-${{ hashFiles('**/Cargo.toml') }} restore-keys: | - build-${{ env.cache-name }}-${{ matrix.build }}- + build-${{ env.cache-name }}-arm64- - - uses: docker://multiarch/ubuntu-core:${{ matrix.build }}-bionic + - uses: docker://multiarch/ubuntu-core:arm64-bionic with: args: > bash -c @@ -60,3 +92,4 @@ jobs: # Launch build and tests && cargo build --release --verbose --all --exclude mla-fuzz-afl && cargo test --release --verbose --all --exclude mla-fuzz-afl" + From ef6ac447874d68af44ae08016bab6100f1068441 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 10:15:22 +0200 Subject: [PATCH 28/44] Update rust.yml --- .github/workflows/rust.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3f42cc7..14992ed 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,13 +10,13 @@ env: CARGO_TERM_COLOR: always jobs: - build-armfh: + build-armhf: runs-on: ubuntu-latest steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: docker://multiarch/ubuntu-core:armfh-bionic + - uses: docker://multiarch/ubuntu-core:armhf-bionic with: args: "uname -a" @@ -29,25 +29,25 @@ jobs: with: # cargo cache files are stored in `target/release` path: target - key: build-${{ env.cache-name }}-armfh-${{ hashFiles('**/Cargo.toml') }} + key: build-${{ env.cache-name }}-armhf-${{ hashFiles('**/Cargo.toml') }} restore-keys: | - build-${{ env.cache-name }}-armfh- + build-${{ env.cache-name }}-armhf- - - uses: docker://multiarch/ubuntu-core:armfh-bionic + - uses: docker://multiarch/ubuntu-core:armhf-bionic with: args: > bash -c "set -x && - # Install rust components && + 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 && - # Show the current toolchain && + echo "Current toolchain:" && source $HOME/.cargo/env && rustup show && - # Launch build and tests && + echo "Launch build and tests" cargo build --release --verbose --all --exclude mla-fuzz-afl && cargo test --release --verbose --all --exclude mla-fuzz-afl" @@ -80,16 +80,16 @@ jobs: args: > bash -c "set -x && - # Install rust components && + 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 && - # Show the current toolchain && + echo "Current toolchain:" && source $HOME/.cargo/env && rustup show && - # Launch build and tests && + echo "Launch build and tests" cargo build --release --verbose --all --exclude mla-fuzz-afl && cargo test --release --verbose --all --exclude mla-fuzz-afl" From 841270447d673fd94f023ae920d893ca4c98b6bb Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 10:18:49 +0200 Subject: [PATCH 29/44] Update rust.yml --- .github/workflows/rust.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 14992ed..156ae56 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -38,16 +38,16 @@ jobs: args: > bash -c "set -x && - echo "Install rust components" && + 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:" && + echo 'Current toolchain:' && source $HOME/.cargo/env && rustup show && - echo "Launch build and tests" + echo 'Launch build and tests' && cargo build --release --verbose --all --exclude mla-fuzz-afl && cargo test --release --verbose --all --exclude mla-fuzz-afl" @@ -80,16 +80,16 @@ jobs: args: > bash -c "set -x && - echo "Install rust components" && + 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:" && + echo 'Current toolchain:' && source $HOME/.cargo/env && rustup show && - echo "Launch build and tests" + echo 'Launch build and tests' && cargo build --release --verbose --all --exclude mla-fuzz-afl && cargo test --release --verbose --all --exclude mla-fuzz-afl" From d5624c9979e9e7d687eb677d92fcfe99a7464388 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 13:36:15 +0200 Subject: [PATCH 30/44] Update rust.yml Cross-build before --- .github/workflows/rust.yml | 60 +++++++------------------------------- 1 file changed, 11 insertions(+), 49 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 156ae56..53c434f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,46 +10,6 @@ env: CARGO_TERM_COLOR: always jobs: - build-armhf: - runs-on: ubuntu-latest - - steps: - - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - - uses: docker://multiarch/ubuntu-core:armhf-bionic - with: - args: "uname -a" - - - uses: actions/checkout@v1 - - - name: Cache crates compilation - uses: actions/cache@v2 - env: - cache-name: cache-crates-compilation - with: - # cargo cache files are stored in `target/release` - path: target - key: build-${{ env.cache-name }}-armhf-${{ hashFiles('**/Cargo.toml') }} - restore-keys: | - build-${{ env.cache-name }}-armhf- - - - uses: docker://multiarch/ubuntu-core:armhf-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 'Launch build and tests' && - cargo build --release --verbose --all --exclude mla-fuzz-afl && - cargo test --release --verbose --all --exclude mla-fuzz-afl" # For some reasons, matrix cannot be used in "uses" statement, so duplicate it build-arm64: @@ -64,16 +24,17 @@ jobs: - uses: actions/checkout@v1 - - name: Cache crates compilation - uses: actions/cache@v2 - env: - cache-name: cache-crates-compilation + - uses: actions-rs/toolchain@v1 with: - # cargo cache files are stored in `target/release` - path: target - key: build-${{ env.cache-name }}-arm64-${{ hashFiles('**/Cargo.toml') }} - restore-keys: | - build-${{ env.cache-name }}-arm64- + target: aarch64-unknown-linux-gnu + + - name: Cross-build + run: cargo build --no-run --target aarch64-unknown-linux-gnu --all --release --exclude mla-fuzz-afl + continue-on-error: true + + - name: Cross-build tests + run: cargo test --no-run --target aarch64-unknown-linux-gnu --all --release --exclude mla-fuzz-afl + continue-on-error: true - uses: docker://multiarch/ubuntu-core:arm64-bionic with: @@ -90,6 +51,7 @@ jobs: source $HOME/.cargo/env && rustup show && echo 'Launch build and tests' && + ls -ahl && cargo build --release --verbose --all --exclude mla-fuzz-afl && cargo test --release --verbose --all --exclude mla-fuzz-afl" From 544dc4079c25921e0b6f5dcae5e6d3e00c8c7769 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 13:37:33 +0200 Subject: [PATCH 31/44] Update rust.yml toolchain stable --- .github/workflows/rust.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 53c434f..b2b59b1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -26,6 +26,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: + toolchain: stable target: aarch64-unknown-linux-gnu - name: Cross-build From d59def42c740e51efab2210755c993ecf65a6dc8 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 13:56:26 +0200 Subject: [PATCH 32/44] Update rust.yml --- .github/workflows/rust.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b2b59b1..1ea8a4e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -29,13 +29,18 @@ jobs: toolchain: stable target: aarch64-unknown-linux-gnu + - name: Install dependencies + run: sudo apt-get install aarch64-linux-gnu-gcc + - name: Cross-build - run: cargo build --no-run --target aarch64-unknown-linux-gnu --all --release --exclude mla-fuzz-afl - continue-on-error: true + env: + RUSTFLAGS: -C linker=aarch64-linux-gnu-gcc + run: cargo build --target aarch64-unknown-linux-gnu --all --release --exclude mla-fuzz-afl - name: Cross-build tests + env: + RUSTFLAGS: -C linker=aarch64-linux-gnu-gcc run: cargo test --no-run --target aarch64-unknown-linux-gnu --all --release --exclude mla-fuzz-afl - continue-on-error: true - uses: docker://multiarch/ubuntu-core:arm64-bionic with: @@ -51,8 +56,6 @@ jobs: echo 'Current toolchain:' && source $HOME/.cargo/env && rustup show && - echo 'Launch build and tests' && - ls -ahl && - cargo build --release --verbose --all --exclude mla-fuzz-afl && - cargo test --release --verbose --all --exclude mla-fuzz-afl" + echo 'Launch tests' && + cargo test --offline --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" From 291acd156b8c7c0a0d958197fb675805476dc8e1 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 14:12:09 +0200 Subject: [PATCH 33/44] Update rust.yml --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1ea8a4e..77a2380 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,7 +30,7 @@ jobs: target: aarch64-unknown-linux-gnu - name: Install dependencies - run: sudo apt-get install aarch64-linux-gnu-gcc + run: sudo apt-get install gcc-aarch64-linux-gnu - name: Cross-build env: From 11c69842464a31042edf071e73ccd7b55bac7e81 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 14:43:13 +0200 Subject: [PATCH 34/44] Update rust.yml cache --- .github/workflows/rust.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 77a2380..e070f4f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -41,6 +41,12 @@ jobs: env: RUSTFLAGS: -C linker=aarch64-linux-gnu-gcc run: cargo test --no-run --target aarch64-unknown-linux-gnu --all --release --exclude mla-fuzz-afl + + - name: Backup Cargo cache for later use + run: mkdir cache && mv .cargo/git .cargo/registry cache + + - name: DEBUG + run: pwd && ls -ahl - uses: docker://multiarch/ubuntu-core:arm64-bionic with: @@ -56,6 +62,10 @@ jobs: echo 'Current toolchain:' && source $HOME/.cargo/env && rustup show && + echo 'Get back cache' && + pwd && ls -ahl && ls -ahl target/ && + mv /github/home/cache/registry /github/home/.cargo/registry && + mv /github/home/cache/git /github/home/.cargo/git && echo 'Launch tests' && cargo test --offline --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" From f7fe5958af7e62206150aa97d729364687bb2d6c Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 14:55:15 +0200 Subject: [PATCH 35/44] Update rust.yml --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e070f4f..37651e2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -43,7 +43,7 @@ jobs: run: cargo test --no-run --target aarch64-unknown-linux-gnu --all --release --exclude mla-fuzz-afl - name: Backup Cargo cache for later use - run: mkdir cache && mv .cargo/git .cargo/registry cache + run: mkdir ~/cache && mv ~/.cargo/git ~/.cargo/registry ~/cache - name: DEBUG run: pwd && ls -ahl From be3a0afa3cb3f0493454b6d2f048d2da33060a2e Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 15:17:57 +0200 Subject: [PATCH 36/44] Update rust.yml --- .github/workflows/rust.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 37651e2..02323a8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -35,15 +35,15 @@ jobs: - name: Cross-build env: RUSTFLAGS: -C linker=aarch64-linux-gnu-gcc - run: cargo build --target aarch64-unknown-linux-gnu --all --release --exclude mla-fuzz-afl + 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 - run: cargo test --no-run --target aarch64-unknown-linux-gnu --all --release --exclude mla-fuzz-afl + 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: mkdir ~/cache && mv ~/.cargo/git ~/.cargo/registry ~/cache + run: mkdir ~/cache && mv ~/.cargo/registry ~/cache - name: DEBUG run: pwd && ls -ahl @@ -65,7 +65,6 @@ jobs: echo 'Get back cache' && pwd && ls -ahl && ls -ahl target/ && mv /github/home/cache/registry /github/home/.cargo/registry && - mv /github/home/cache/git /github/home/.cargo/git && echo 'Launch tests' && cargo test --offline --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" From 0f2d85d03ae3a26ba6ba905243edad6200d3cb46 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 15:32:06 +0200 Subject: [PATCH 37/44] Update rust.yml --- .github/workflows/rust.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 02323a8..b6db278 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -43,7 +43,7 @@ jobs: 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: mkdir ~/cache && mv ~/.cargo/registry ~/cache + run: echo ~/.cargo && mv ~/.cargo /home/runner/work/_temp/_github_home/ - name: DEBUG run: pwd && ls -ahl @@ -63,8 +63,7 @@ jobs: source $HOME/.cargo/env && rustup show && echo 'Get back cache' && - pwd && ls -ahl && ls -ahl target/ && - mv /github/home/cache/registry /github/home/.cargo/registry && + pwd && ls -ahl && ls -ahl target/ && ls -ahl ~/.cargo && echo 'Launch tests' && cargo test --offline --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" From 202f01ab4613068542ca9ebd26c11bb7aa1bd907 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 15:50:30 +0200 Subject: [PATCH 38/44] Update rust.yml --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b6db278..1005253 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -43,7 +43,7 @@ jobs: 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 && mv ~/.cargo /home/runner/work/_temp/_github_home/ + run: echo ~/.cargo/registry && mv ~/.cargo /home/runner/work/_temp/_github_home/registry_cache - name: DEBUG run: pwd && ls -ahl @@ -63,7 +63,7 @@ jobs: source $HOME/.cargo/env && rustup show && echo 'Get back cache' && - pwd && ls -ahl && ls -ahl target/ && ls -ahl ~/.cargo && + pwd && ls -ahl && ls -ahl target/ && ls -ahl ~/.cargo && mv ~/registry_cache ~/.cargo/registry echo 'Launch tests' && cargo test --offline --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" From 2ccca114412c150860fa2f1108e9fd7eafad57f0 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 15:51:14 +0200 Subject: [PATCH 39/44] Update rust.yml --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1005253..d90239d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -63,7 +63,7 @@ jobs: source $HOME/.cargo/env && rustup show && echo 'Get back cache' && - pwd && ls -ahl && ls -ahl target/ && ls -ahl ~/.cargo && mv ~/registry_cache ~/.cargo/registry + pwd && ls -ahl && ls -ahl target/ && ls -ahl ~/.cargo && mv ~/registry_cache ~/.cargo/registry && echo 'Launch tests' && cargo test --offline --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" From a009f00379b017a7ce944e636014ee199bb54435 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 16:14:59 +0200 Subject: [PATCH 40/44] Update rust.yml --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d90239d..9684544 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,7 +18,7 @@ jobs: steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: docker://multiarch/ubuntu-core:arm64-bionic + - uses: docker://multiarch/ubuntu-core:arm64-bionic with: args: "uname -a" From a3b2d8a2053fe1f2059ab556e904fbdba52b613b Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 17:14:32 +0200 Subject: [PATCH 41/44] Update rust.yml --- .github/workflows/rust.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9684544..e0c9058 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -43,10 +43,10 @@ jobs: 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 /home/runner/work/_temp/_github_home/registry_cache + run: echo ~/.cargo/registry && mv ~/.cargo/registry /home/runner/work/_temp/_github_home/registry_cache - name: DEBUG - run: pwd && ls -ahl + run: pwd && ls -ahl && ls -ahl ~/.cargo - uses: docker://multiarch/ubuntu-core:arm64-bionic with: @@ -65,5 +65,5 @@ jobs: echo 'Get back cache' && pwd && ls -ahl && ls -ahl target/ && ls -ahl ~/.cargo && mv ~/registry_cache ~/.cargo/registry && echo 'Launch tests' && - cargo test --offline --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" + cargo test --frozen --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" From fff3037c0779449aa62c8978f0b07a270ef6dcc7 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 18:23:02 +0200 Subject: [PATCH 42/44] Update rust.yml fix PATH --- .github/workflows/rust.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e0c9058..c4aa534 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -63,7 +63,9 @@ jobs: 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 target/ && ls -ahl ~/.cargo && mv ~/registry_cache ~/.cargo/registry && echo 'Launch tests' && - cargo test --frozen --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" + CARGO_BUILD_TARGET_DIR=/home/runner/work/MLA/MLA/target/aarch64-unknown-linux-gnu cargo test --frozen --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" From dfbd3ae1c1049992308241ecf08c0e590e27aede Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 18:33:48 +0200 Subject: [PATCH 43/44] Update rust.yml --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c4aa534..a067dba 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -46,7 +46,7 @@ jobs: run: echo ~/.cargo/registry && mv ~/.cargo/registry /home/runner/work/_temp/_github_home/registry_cache - name: DEBUG - run: pwd && ls -ahl && ls -ahl ~/.cargo + run: pwd && ls -ahl && ls -ahl /usr/share/rust/.cargo - uses: docker://multiarch/ubuntu-core:arm64-bionic with: @@ -65,7 +65,7 @@ jobs: echo 'Get back cache' && mkdir -p /home/runner/work/MLA/MLA && mv ./target /home/runner/work/MLA/MLA && - pwd && ls -ahl && ls -ahl target/ && ls -ahl ~/.cargo && mv ~/registry_cache ~/.cargo/registry && + pwd && ls -ahl && ls -ahl ~/.cargo && mv ~/registry_cache ~/.cargo/registry && echo 'Launch tests' && CARGO_BUILD_TARGET_DIR=/home/runner/work/MLA/MLA/target/aarch64-unknown-linux-gnu cargo test --frozen --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" From 3334806422b46edf998ba64ed0f4d0be2527ea19 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 27 Jul 2020 18:52:33 +0200 Subject: [PATCH 44/44] Update rust.yml --- .github/workflows/rust.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a067dba..9573511 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -35,11 +35,13 @@ jobs: - 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 + 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 @@ -65,7 +67,7 @@ jobs: 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 && + 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 test --frozen --release --verbose --all --exclude mla-fuzz-afl --target aarch64-unknown-linux-gnu" + 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"