Skip to content

Commit

Permalink
Workflow changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ax0 committed Apr 5, 2024
1 parent 8659bac commit 3dcac73
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 13 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Install Guix
uses: PromyLOPh/guix-install-action@v1
- name: Build package
- name: Install dependencies
run: |
guix build -f guix.scm
sudo apt update
sudo apt install automake autoconf pkg-config make
sudo apt install guile-3.0 guile-3.0-libs guile-3.0-dev
- name: Generate scripts
run: |
./autogen.sh
- name: Run configuration script
run: |
./configure
- name: Check distribution
make distcheck


5 changes: 4 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ TESTS_ENVIRONMENT = $(AM_V_GEN)$(top_builddir)/pre-inst-env

EXTRA_DIST = \
README.org \
autogen.sh \
autogen.sh \
pre-inst-env.in
EXTRA_DIST += \
$(TESTS) \
tests/data.scm
4 changes: 4 additions & 0 deletions tests/data.scm
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
;; RLP encoding/decoding test data
;; Examples taken from https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/
(import
(only (rlp) number->be-bytes rlp-encode)
(scheme base)
(srfi 1))
(define bv-test-data
(zip
(list ; Unencoded strings
Expand Down
7 changes: 3 additions & 4 deletions tests/decode.scm
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/usr/bin/guile -s
!#
;; RLP decoding tests.
(import (only (rlp) number->be-bytes rlp-decode)
(scheme base)
(srfi 1)
(import (only (rlp) rlp-decode)
(srfi 64))
(include "data.scm")

(load "data.scm")

(test-begin "bv-decode-test")
(for-each
Expand Down
7 changes: 3 additions & 4 deletions tests/encode.scm
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/usr/bin/guile -s
!#
;; RLP encoding tests.
(import (only (rlp) number->be-bytes rlp-encode)
(scheme base)
(srfi 1)
(import (only (rlp) rlp-encode)
(srfi 64))
(include "data.scm")

(load "data.scm")

(test-begin "bv-encode-test")
(for-each
Expand Down

0 comments on commit 3dcac73

Please sign in to comment.