aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml8
-rw-r--r--.github/workflows/nightly.yml12
2 files changed, 12 insertions, 8 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 17eb970..c652f0f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,4 +1,6 @@
name: CI
+env:
+ ODIN_BRANCH: dev-2025-09
on:
push:
@@ -23,7 +25,7 @@ jobs:
- name: Download Odin
shell: cmd
run: |
- git clone https://github.com/odin-lang/Odin
+ git clone --depth 1 --branch %ODIN_BRANCH% https://github.com/odin-lang/Odin
- name: Build Odin
shell: cmd
run: |
@@ -50,7 +52,7 @@ jobs:
echo "/usr/lib/llvm-17/bin" >> $GITHUB_PATH
- name: Build Odin
run: |
- git clone --depth 1 https://github.com/odin-lang/Odin
+ git clone --depth 1 --branch $ODIN_BRANCH https://github.com/odin-lang/Odin
cd Odin && ./build_odin.sh release
- name: Build ols
run: ./ci.sh CI
@@ -72,7 +74,7 @@ jobs:
echo "CPATH=$TMP_PATH" >> $GITHUB_ENV
- name: Build Odin
run: |
- git clone --depth 1 https://github.com/odin-lang/Odin
+ git clone --depth 1 --branch $ODIN_BRANCH https://github.com/odin-lang/Odin
cd Odin && ./build_odin.sh release
- name: Build ols
run: ./ci.sh CI
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index cbbf4a1..3efe602 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -1,4 +1,6 @@
name: nightly
+env:
+ ODIN_BRANCH: dev-2025-09
on:
workflow_dispatch:
@@ -17,7 +19,7 @@ jobs:
echo "/opt/homebrew/opt/llvm@17/bin" >> $GITHUB_PATH
- name: Download Odin
run: |
- git clone https://github.com/odin-lang/Odin
+ git clone --depth 1 --branch $ODIN_BRANCH https://github.com/odin-lang/Odin
- name: Build Odin
run: |
cd Odin
@@ -47,7 +49,7 @@ jobs:
echo "CPATH=$TMP_PATH" >> $GITHUB_ENV
- name: Download Odin
run: |
- git clone https://github.com/odin-lang/Odin
+ git clone --depth 1 --branch $ODIN_BRANCH https://github.com/odin-lang/Odin
- name: Build Odin
run: |
cd Odin
@@ -77,7 +79,7 @@ jobs:
echo "/usr/lib/llvm-17/bin" >> $GITHUB_PATH
- name: Download Odin
run: |
- git clone https://github.com/odin-lang/Odin
+ git clone --depth 1 --branch $ODIN_BRANCH https://github.com/odin-lang/Odin
- name: Build Odin
run: |
cd Odin
@@ -107,7 +109,7 @@ jobs:
echo "/usr/lib/llvm-17/bin" >> $GITHUB_PATH
- name: Download Odin
run: |
- git clone https://github.com/odin-lang/Odin
+ git clone --depth 1 --branch $ODIN_BRANCH https://github.com/odin-lang/Odin
- name: Build Odin
run: |
cd Odin
@@ -134,7 +136,7 @@ jobs:
- name: Download Odin
shell: cmd
run: |
- git clone https://github.com/odin-lang/Odin
+ git clone --depth 1 --branch %ODIN_BRANCH% https://github.com/odin-lang/Odin
- name: Build Odin
shell: cmd
run: |