Skip to content

Commit 9ced24d

Browse files
maximecbXrXr
authored andcommitted
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
1 parent 62d046f commit 9ced24d

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.github/workflows/asm_tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: x86 assembler tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Install dependencies
10+
run: |
11+
set -x
12+
sudo apt-get update -q || :
13+
sudo apt-get install --no-install-recommends -q -y build-essential
14+
- name: git config
15+
run: |
16+
git config --global advice.detachedHead 0
17+
git config --global init.defaultBranch garbage
18+
- uses: actions/checkout@v2
19+
with:
20+
path: src
21+
- name: Run ASM tests
22+
run: ./test_asm.sh
23+
working-directory: src

test_asm.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# NOTE: I did not know what would be the sensible way to compile
2-
# and run these tests from the Ruby makefile
3-
4-
clear
1+
set -e
2+
set -x
53

64
clang -std=gnu99 -Wall -Werror -Wshorten-64-to-32 yjit_asm.c yjit_asm_tests.c -o asm_test
75

0 commit comments

Comments
 (0)