From eaf039af982b19a854ad705cd441144ae648b791 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Thu, 22 Apr 2021 18:24:45 -0400 Subject: [PATCH] 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 --- .github/workflows/asm_tests.yml | 23 +++++++++++++++++++++++ test_asm.sh | 6 ++---- 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/asm_tests.yml diff --git a/.github/workflows/asm_tests.yml b/.github/workflows/asm_tests.yml new file mode 100644 index 0000000000..a5601b97d7 --- /dev/null +++ b/.github/workflows/asm_tests.yml @@ -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 diff --git a/test_asm.sh b/test_asm.sh index e7f6ce9761..d6493fbdff 100755 --- a/test_asm.sh +++ b/test_asm.sh @@ -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