Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When making pull request, compile the compiler with itself #670

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
run: echo "LLVM_CONFIG=llvm-config-${{ matrix.llvm-version }}" >> $GITHUB_ENV
- name: "Compile and test"
run: ./runtests.sh --verbose --jou-flags "${{ matrix.opt-level }}"
- name: "Compile the compiler with itself"
run: mv jou jou_bootstrap && make
- name: "Compile and test again"
run: ./runtests.sh --verbose --jou-flags "${{ matrix.opt-level }}"

doctest:
needs: bootstrap
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
run: echo "LLVM_CONFIG=/opt/homebrew/opt/llvm@${{ matrix.llvm-version }}/bin/llvm-config" >> $GITHUB_ENV
- name: "Compile and test"
run: ./runtests.sh --verbose --jou-flags "${{ matrix.opt-level }}"
- name: "Compile the compiler with itself"
run: mv jou jou_bootstrap && make
- name: "Compile and test again"
run: ./runtests.sh --verbose --jou-flags "${{ matrix.opt-level }}"

doctest:
needs: bootstrap
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,14 @@ jobs:
path: "test dir"
- run: cd "test dir" && ./windows_setup.sh --small
shell: bash
- run: cd "test dir" && source activate && ./runtests.sh --verbose
- name: "Compile and test"
run: cd "test dir" && source activate && ./runtests.sh --verbose
shell: bash
- name: "Compile the compiler with itself"
run: cd "test dir" && source activate && mv jou.exe jou_bootstrap.exe && mingw32-make
shell: bash
- name: "Compile and test again"
run: cd "test dir" && source activate && ./runtests.sh --verbose
shell: bash

test-zip:
Expand Down
Loading