Create GitHub workflow to run ASM tests (#8)

* Create GitHub workflow to run ASM tests

* Specify path

* Attempt #3

* Set bash flags to print commands, stop on first error

* Remove clear command from test_asm.sh

* Use clang
This commit is contained in:
Maxime Chevalier-Boisvert 2021-04-22 18:24:45 -04:00 коммит произвёл Alan Wu
Родитель f1b11fa454
Коммит eaf039af98
2 изменённых файлов: 25 добавлений и 4 удалений

23
.github/workflows/asm_tests.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,23 @@
name: x86 assembler tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
set -x
sudo apt-get update -q || :
sudo apt-get install --no-install-recommends -q -y build-essential
- name: git config
run: |
git config --global advice.detachedHead 0
git config --global init.defaultBranch garbage
- uses: actions/checkout@v2
with:
path: src
- name: Run ASM tests
run: ./test_asm.sh
working-directory: src

Просмотреть файл

@ -1,7 +1,5 @@
# NOTE: I did not know what would be the sensible way to compile
# and run these tests from the Ruby makefile
clear
set -e
set -x
clang -std=gnu99 -Wall -Werror -Wshorten-64-to-32 yjit_asm.c yjit_asm_tests.c -o asm_test