ruby-changes:68969
From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:19:30 +0900 (JST)
Subject: [ruby-changes:68969] eaf039af98 (master): Create GitHub workflow to run ASM tests (#8)
https://git.ruby-lang.org/ruby.git/commit/?id=eaf039af98 From eaf039af982b19a854ad705cd441144ae648b791 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert <maximechevalierb@g...> Date: Thu, 22 Apr 2021 18:24:45 -0400 Subject: 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 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/asm_tests.yml#L1 +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 @@ https://github.com/ruby/ruby/blob/trunk/test_asm.sh#L1 -# 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 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/