mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-29 08:41:48 -07:00
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Nightly
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Install cURL
|
|
run: choco install curl
|
|
- name: Download and unpack LLVM bins
|
|
shell: cmd
|
|
run: |
|
|
cd bin
|
|
curl -sL https://github.com/odin-lang/Odin/releases/download/llvm-windows/llvm-binaries.zip --output llvm-binaries.zip
|
|
7z x llvm-binaries.zip > nul
|
|
- name: build Odin
|
|
shell: cmd
|
|
run: |
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
|
./build_ci.bat
|
|
- name: Odin run
|
|
shell: cmd
|
|
run: |
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
|
odin run examples/demo/demo.odin
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: exe
|
|
path: odin.exe
|
|
upload_b2:
|
|
runs-on: [linux]
|
|
needs: [build]
|
|
steps:
|
|
- name: Install B2 CLI
|
|
shell: bash
|
|
run: sudo pip install --upgrade b2
|
|
- name: Download exe
|
|
uses: actions/download-artifact@v1
|
|
with:
|
|
name: exe
|
|
- name: List artifacts
|
|
run: find . -type f -printf "%T@ %p\n" | sort -nr | cut -d\ -f2-
|
|
|