Skip to content

Commit

Permalink
Run aarch64 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Aug 28, 2023
1 parent 986ef48 commit e854236
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,30 @@ env:

jobs:
test:
name: Rust ${{matrix.rust}}
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
rust: [nightly, beta, stable, 1.64]
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
- uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}

- name: Enable type layout randomization
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
if: matrix.rust == 'nightly'

- uses: Swatinem/rust-cache@v2

- run: cargo build
- run: cargo test
- run: cargo test --release
Expand Down
5 changes: 2 additions & 3 deletions src/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ pub(super) unsafe fn encode<const UPPER: bool>(input: &[u8], output: *mut u8) {

// Store result into the output buffer.
_mm_storeu_si128(output.add(i).cast(), hex_lo);
i += CHUNK_SIZE;
_mm_storeu_si128(output.add(i).cast(), hex_hi);
i += CHUNK_SIZE;
_mm_storeu_si128(output.add(i + CHUNK_SIZE).cast(), hex_hi);
i += CHUNK_SIZE * 2;
}

if !input_remainder.is_empty() {
Expand Down

0 comments on commit e854236

Please sign in to comment.