mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
f1b11fa454
commit
eaf039af98
2 changed files with 25 additions and 4 deletions
23
.github/workflows/asm_tests.yml
vendored
Normal file
23
.github/workflows/asm_tests.yml
vendored
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue