From 46093bad1eb4f8763b4b6f5ffad8212d7fff5338 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Mon, 22 Jan 2024 17:37:18 +0100 Subject: [PATCH 1/4] update LLVM to 17 for releases --- .github/workflows/nightly.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 709f968a7..e249e3419 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -47,7 +47,11 @@ jobs: steps: - uses: actions/checkout@v1 - name: (Linux) Download LLVM - run: sudo apt-get install llvm-11 clang-11 + run: | + wget https://apt.llvm.org/llvm.sh + chmod +x llvm.sh + sudo ./llvm.sh 17 + echo "/usr/lib/llvm-17/bin" >> $GITHUB_PATH - name: build odin run: make nightly - name: Odin run @@ -78,10 +82,8 @@ jobs: - uses: actions/checkout@v1 - name: Download LLVM and setup PATH run: | - brew install llvm@13 dylibbundler - echo "/usr/local/opt/llvm@13/bin" >> $GITHUB_PATH - TMP_PATH=$(xcrun --show-sdk-path)/user/include - echo "CPATH=$TMP_PATH" >> $GITHUB_ENV + brew install llvm@17 dylibbundler + echo "/usr/local/opt/llvm@17/bin" >> $GITHUB_PATH - name: build odin # These -L makes the linker prioritize system libraries over LLVM libraries, this is mainly to # not link with libunwind bundled with LLVM but link with libunwind on the system. From ae9f026f4b113f6c302d6e6ad4a82300ddf9e303 Mon Sep 17 00:00:00 2001 From: Laytan Date: Tue, 6 Feb 2024 19:37:55 +0100 Subject: [PATCH 2/4] llvm 17 on macos arm releases --- .github/workflows/nightly.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index e249e3419..ff90ab57e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -116,10 +116,8 @@ jobs: - uses: actions/checkout@v1 - name: Download LLVM and setup PATH run: | - brew install llvm@13 dylibbundler - echo "/opt/homebrew/opt/llvm@13/bin" >> $GITHUB_PATH - TMP_PATH=$(xcrun --show-sdk-path)/user/include - echo "CPATH=$TMP_PATH" >> $GITHUB_ENV + brew install llvm@17 dylibbundler + echo "/opt/homebrew/opt/llvm@17/bin" >> $GITHUB_PATH - name: build odin # These -L makes the linker prioritize system libraries over LLVM libraries, this is mainly to # not link with libunwind bundled with LLVM but link with libunwind on the system. From 3b34cf6dbb23c8c6a4337ffa3066f3ef63bd38cc Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Wed, 21 Feb 2024 22:47:03 +0100 Subject: [PATCH 3/4] Also update to LLVM 17 for general CI --- .github/workflows/ci.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2f32e7a1..48751bf5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,11 @@ jobs: steps: - uses: actions/checkout@v1 - name: Download LLVM - run: sudo apt-get install llvm-11 clang-11 + run: | + wget https://apt.llvm.org/llvm.sh + chmod +x llvm.sh + sudo ./llvm.sh 17 + echo "/usr/lib/llvm-17/bin" >> $GITHUB_PATH - name: build odin run: ./build_odin.sh release - name: Odin version @@ -63,10 +67,8 @@ jobs: - uses: actions/checkout@v1 - name: Download LLVM, and setup PATH run: | - brew install llvm@13 - echo "/usr/local/opt/llvm@13/bin" >> $GITHUB_PATH - TMP_PATH=$(xcrun --show-sdk-path)/user/include - echo "CPATH=$TMP_PATH" >> $GITHUB_ENV + brew install llvm@17 + echo "/usr/local/opt/llvm@17/bin" >> $GITHUB_PATH - name: build odin run: ./build_odin.sh release - name: Odin version @@ -104,10 +106,8 @@ jobs: - uses: actions/checkout@v1 - name: Download LLVM and setup PATH run: | - brew install llvm@13 - echo "/opt/homebrew/opt/llvm@13/bin" >> $GITHUB_PATH - TMP_PATH=$(xcrun --show-sdk-path)/user/include - echo "CPATH=$TMP_PATH" >> $GITHUB_ENV + brew install llvm@17 + echo "/opt/homebrew/opt/llvm@17/bin" >> $GITHUB_PATH - name: build odin run: ./build_odin.sh release - name: Odin version From dcc263c618c853eb7cc6fa300ace78bdbd6ccbc2 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Sat, 23 Mar 2024 18:27:09 +0100 Subject: [PATCH 4/4] re-enable core tests on macos arm --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48751bf5c..0cbe8ad23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -128,11 +128,11 @@ jobs: - name: Odin check examples/all run: ./odin check examples/all -strict-style timeout-minutes: 10 - # - name: Core library tests - # run: | - # cd tests/core - # make - # timeout-minutes: 10 + - name: Core library tests + run: | + cd tests/core + make + timeout-minutes: 10 - name: Odin internals tests run: | cd tests/internal