Fix context data ptr in token_length #197
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test example code | |
on: [push, pull_request] | |
jobs: | |
check-output: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup latest zig | |
run: | | |
wget https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3970+7a8002a5c.tar.xz | |
tar xf zig-linux-x86_64-0.11.0-dev.3970+7a8002a5c.tar.xz | |
mv zig-linux-x86_64-0.11.0-dev.3970+7a8002a5c zig | |
- name: Build self-hosted compiler | |
run: zig/zig build run -- selfhost/main.n | |
- name: Disassemble the built binary | |
run: objdump -d -M intel a.out | |
- name: Run the built binary | |
run: strace ./a.out | |
- name: Run the test cases | |
run: ./tests.sh |