Skip to content

Commit

Permalink
Create GitHub workflow to run ASM tests (#8)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
maximecb authored and noahgibbs committed Oct 20, 2021
1 parent 4c31e6e commit 47a26be
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/asm_tests.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 2 additions & 4 deletions test_asm.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 47a26be

Please sign in to comment.