Browse Source

ci: add GitHub Actions workflow 'test'

master
umarcor 4 years ago
parent
commit
d7b39f322e
2 changed files with 74 additions and 0 deletions
  1. +17
    -0
      .github/test.sh
  2. +57
    -0
      .github/workflows/test.yml

+ 17
- 0
.github/test.sh View File

@ -0,0 +1,17 @@
#!/usr/bin/env sh
set -e
cd $(dirname "$0")/..
run_sim() {
echo "::group::Test $1"
cd "$1"/sim/vhdl
$MAKE sim
cd ../../..
echo '::endgroup::'
}
for item in aes cbcdes cbcmac_des cbctdes des tdes; do
run_sim $item
done

+ 57
- 0
.github/workflows/test.yml View File

@ -0,0 +1,57 @@
name: 'test'
on:
push:
pull_request:
jobs:
lin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt update -qq
sudo apt install -y libssl-dev
- uses: ghdl/setup-ghdl-ci@master
with:
backend: llvm
- run: ./.github/test.sh
env:
MAKE: make
win:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >
mingw-w64-x86_64-make
mingw-w64-x86_64-ghdl-llvm
mingw-w64-x86_64-openssl
- run: git config --global core.autocrlf input
shell: bash
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/test.sh
env:
MAKE: mingw32-make

Loading…
Cancel
Save