From a61038dbebea5a074b2299b966827ea9dadbaa48 Mon Sep 17 00:00:00 2001 From: Akuli Date: Tue, 21 Jan 2025 16:03:48 +0200 Subject: [PATCH] When making pull request, compile the compiler with itself --- .github/workflows/linux.yml | 4 ++++ .github/workflows/macos.yml | 4 ++++ .github/workflows/windows.yml | 9 ++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 494f39a6..0650f954 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 2799cb9a..98e05ad3 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ebf12fef..57d16528 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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: