From 4a5725f1b951b309d04ab3eb1df4e29e958286e3 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Tue, 12 Sep 2023 06:04:52 -0400 Subject: [PATCH] Add rust toolchain to github workflow --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1a46519..171dc1ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,7 @@ jobs: with: fetch-depth: 1 submodules: recursive + - uses: dtolnay/rust-toolchain@stable - run: cmake ${{ matrix.CMAKE_ARGS }} . - run: make -j4 VERBOSE=1 - if: ${{ ! contains(matrix.CMAKE_ARGS, 'CMAKE_BUILD_TYPE') }} @@ -34,6 +35,7 @@ jobs: with: fetch-depth: 1 submodules: recursive + - uses: dtolnay/rust-toolchain@stable - run: sudo gem install apt-spy2 && sudo apt-spy2 fix - run: sudo apt-get update -y - run: sudo apt-get install -o Acquire::Retries=5 -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu @@ -46,6 +48,9 @@ jobs: with: fetch-depth: 1 submodules: recursive + - uses: dtolnay/rust-toolchain@stable + with: + targets: armv7-unknown-linux-gnueabihf - run: sudo gem install apt-spy2 && sudo apt-spy2 fix - run: sudo apt-get update -y - run: sudo apt-get install -o Acquire::Retries=5 -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf @@ -61,6 +66,7 @@ jobs: with: fetch-depth: 1 submodules: true + - uses: dtolnay/rust-toolchain@stable - run: CXXFLAGS='-std=c++17' cmake . - run: make -j4 VERBOSE=1 - run: make -j4 test ARGS=-V @@ -71,6 +77,7 @@ jobs: with: fetch-depth: 1 submodules: recursive + - uses: dtolnay/rust-toolchain@stable - run: cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release . - run: cmake --build . --config Release --verbose - run: Release\SMHasher.exe --test=VerifyAll,Sanity,Speed,Cyclic,Zeroes,Seed @@ -96,6 +103,7 @@ jobs: cmake base-devel mingw-w64-x86_64-toolchain + - uses: dtolnay/rust-toolchain@stable - run: reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /f /v DontShowUI /d 1 - uses: actions/checkout@v3 with: