Skip to content

Commit

Permalink
gci: Add rust configuration to Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Jan 25, 2022
1 parent 35fef09 commit 6d7132a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
export DEBIAN_FRONTEND=noninteractive
export BITCOIN_VERSION=0.20.1
export ELEMENTS_VERSION=0.18.1.8
export RUST_VERSION=nightly

sudo useradd -ms /bin/bash tester
sudo apt-get update -qq

Expand Down Expand Up @@ -66,3 +68,8 @@ sudo chmod 0440 /etc/sudoers.d/tester
elements-$ELEMENTS_VERSION-x86_64-linux-gnu.tar.bz2 \
elements-$ELEMENTS_VERSION
)

if [ "$RUST" == "1" ]; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
-y --default-toolchain ${RUST_VERSION}
fi
32 changes: 32 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -337,3 +337,35 @@ jobs:
with:
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
path: report.*

rust-test:
name: Rust Test Config
runs-on: ubuntu-20.04
needs: [smoke-test]
env:
DEVELOPER: 1
RUST: 1
VALGRIND: 0
steps:
- name: Checkout
uses: actions/[email protected]

- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6

- name: Install dependencies
run: |
bash -x .github/scripts/setup.sh
- name: Build
run: |
bash -x .github/scripts/build.sh
- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
path: report.*

0 comments on commit 6d7132a

Please sign in to comment.