Skip to content

Commit

Permalink
Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa committed Mar 5, 2024
1 parent 127357a commit 4ff1ab1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/rts-outside-nix.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
name: rts-outside-nix
# Build RTS outside of Nix environment

name: RTS

on:
push:
branches: [ "master" ]
pull_request:

jobs:
build:
build-outside-nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Download dependencies
run: |
git clone --branch v0.2.0 --depth 1 https://github.com/libtom/libtommath ..
- name: Build RTS
run: make -C rts
6 changes: 6 additions & 0 deletions rts/motoko-rts/src/principal_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ pub unsafe extern "C" fn compute_crc32(blob: Value) -> u32 {
!crc
}

// TEMPORARY
#[no_mangle]
pub unsafe extern "C" fn echo(value: u32) -> u32 {
value
}

static CRC_TABLE: [u32; 256] = [
0x0, 0x77073096, 0xee0e612c, 0x990951ba, 0x76dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,
0xedb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x9b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91,
Expand Down

0 comments on commit 4ff1ab1

Please sign in to comment.