Skip to content

Commit

Permalink
Build and run tests in Github Actions in Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
curiousdannii committed Apr 28, 2022
1 parent c4bc6cd commit 65bb92f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: build-and-test

on: [push, pull_request]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: .github/workflows/prepare.sh
- run: bash scripts/first.sh
- run: make check
22 changes: 22 additions & 0 deletions .github/workflows/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

set -e

ROOT=$PWD
cd ..

echo "Downloading Inweb"
rm -rf inweb
curl -Ls https://github.com/ganelson/inweb/archive/refs/heads/master.tar.gz | tar xz
mv inweb-master inweb -f
echo "Compiling Inweb"
bash inweb/scripts/first.sh linux

echo "Downloading Intest"
rm -rf intest
curl -Ls https://github.com/ganelson/intest/archive/refs/heads/master.tar.gz | tar xz
mv intest-master intest -f
echo "Compiling Intest"
bash intest/scripts/first.sh

cd $ROOT

0 comments on commit 65bb92f

Please sign in to comment.