Skip to content

Commit

Permalink
Add rust toolchain to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Sep 13, 2023
1 parent c24b91e commit 4a5725f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 4a5725f

Please sign in to comment.