mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
[nightly] added linux arm build
[nightly] docker container for linux arm [nightly] removed setup-alpine for arm [nightly] docker container for all linux + linux arm dep for upload [nightly] x86 remove arm reference [nightly] final fixes
This commit is contained in:
@@ -47,20 +47,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: jirutka/setup-alpine@v1
|
- name: (Linux) Download LLVM and Build Odin
|
||||||
with:
|
|
||||||
branch: edge
|
|
||||||
- name: (Linux) Download LLVM
|
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache \
|
docker run --rm -v "$PWD:/src" -w /src alpine sh -c '
|
||||||
musl-dev llvm20-dev clang20 git mold lz4 \
|
apk add --no-cache \
|
||||||
libxml2-static llvm20-static zlib-static zstd-static \
|
musl-dev llvm20-dev clang20 git mold lz4 \
|
||||||
make
|
libxml2-static llvm20-static zlib-static zstd-static \
|
||||||
shell: alpine.sh --root {0}
|
make &&
|
||||||
- name: build odin
|
./ci/build_linux_static.sh
|
||||||
# NOTE: this build does slow compile times because of musl
|
'
|
||||||
run: ci/build_linux_static.sh
|
|
||||||
shell: alpine.sh {0}
|
|
||||||
- name: Odin run
|
- name: Odin run
|
||||||
run: ./odin run examples/demo
|
run: ./odin run examples/demo
|
||||||
- name: Copy artifacts
|
- name: Copy artifacts
|
||||||
@@ -85,6 +80,45 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: linux_artifacts
|
name: linux_artifacts
|
||||||
path: dist.tar.gz
|
path: dist.tar.gz
|
||||||
|
build_linux_arm:
|
||||||
|
name: Linux ARM Build
|
||||||
|
if: github.repository == 'odin-lang/Odin'
|
||||||
|
runs-on: ubuntu-24.04-arm
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: (Linux ARM) Download LLVM and Build Odin
|
||||||
|
run: |
|
||||||
|
docker run --rm -v "$PWD:/src" -w /src arm64v8/alpine sh -c '
|
||||||
|
apk add --no-cache \
|
||||||
|
musl-dev llvm20-dev clang20 git mold lz4 \
|
||||||
|
libxml2-static llvm20-static zlib-static zstd-static \
|
||||||
|
make &&
|
||||||
|
./ci/build_linux_static.sh
|
||||||
|
'
|
||||||
|
- name: Odin run
|
||||||
|
run: ./odin run examples/demo
|
||||||
|
- name: Copy artifacts
|
||||||
|
run: |
|
||||||
|
FILE="odin-linux-arm64-nightly+$(date -I)"
|
||||||
|
mkdir $FILE
|
||||||
|
cp odin $FILE
|
||||||
|
cp LICENSE $FILE
|
||||||
|
cp -r shared $FILE
|
||||||
|
cp -r base $FILE
|
||||||
|
cp -r core $FILE
|
||||||
|
cp -r vendor $FILE
|
||||||
|
cp -r examples $FILE
|
||||||
|
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
|
||||||
|
tar -czvf dist.tar.gz $FILE
|
||||||
|
- name: Odin run
|
||||||
|
run: |
|
||||||
|
FILE="odin-linux-arm64-nightly+$(date -I)"
|
||||||
|
$FILE/odin run examples/demo
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: linux_arm_artifacts
|
||||||
|
path: dist.tar.gz
|
||||||
build_macos:
|
build_macos:
|
||||||
name: MacOS Build
|
name: MacOS Build
|
||||||
if: github.repository == 'odin-lang/Odin'
|
if: github.repository == 'odin-lang/Odin'
|
||||||
@@ -163,7 +197,7 @@ jobs:
|
|||||||
path: dist.tar.gz
|
path: dist.tar.gz
|
||||||
upload_b2:
|
upload_b2:
|
||||||
runs-on: [ubuntu-latest]
|
runs-on: [ubuntu-latest]
|
||||||
needs: [build_windows, build_macos, build_macos_arm, build_linux]
|
needs: [build_windows, build_macos, build_macos_arm, build_linux, build_linux_arm]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
@@ -192,6 +226,12 @@ jobs:
|
|||||||
name: linux_artifacts
|
name: linux_artifacts
|
||||||
path: linux_artifacts
|
path: linux_artifacts
|
||||||
|
|
||||||
|
- name: Download Ubuntu ARM artifacts
|
||||||
|
uses: actions/download-artifact@v4.1.7
|
||||||
|
with:
|
||||||
|
name: linux_arm_artifacts
|
||||||
|
path: linux_arm_artifacts
|
||||||
|
|
||||||
- name: Download macOS artifacts
|
- name: Download macOS artifacts
|
||||||
uses: actions/download-artifact@v4.1.7
|
uses: actions/download-artifact@v4.1.7
|
||||||
with:
|
with:
|
||||||
@@ -219,6 +259,7 @@ jobs:
|
|||||||
file linux_artifacts/dist.tar.gz
|
file linux_artifacts/dist.tar.gz
|
||||||
python3 ci/nightly.py artifact windows-amd64 windows_artifacts/
|
python3 ci/nightly.py artifact windows-amd64 windows_artifacts/
|
||||||
python3 ci/nightly.py artifact linux-amd64 linux_artifacts/dist.tar.gz
|
python3 ci/nightly.py artifact linux-amd64 linux_artifacts/dist.tar.gz
|
||||||
|
python3 ci/nightly.py artifact linux-arm64 linux_arm_artifacts/dist.tar.gz
|
||||||
python3 ci/nightly.py artifact macos-amd64 macos_artifacts/dist.tar.gz
|
python3 ci/nightly.py artifact macos-amd64 macos_artifacts/dist.tar.gz
|
||||||
python3 ci/nightly.py artifact macos-arm64 macos_arm_artifacts/dist.tar.gz
|
python3 ci/nightly.py artifact macos-arm64 macos_arm_artifacts/dist.tar.gz
|
||||||
python3 ci/nightly.py prune
|
python3 ci/nightly.py prune
|
||||||
|
|||||||
Reference in New Issue
Block a user