mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Setup nightly.yml to run everyday at 20:00 UTC
This commit is contained in:
committed by
Mikkel Hjortshoej
parent
9b9a4fcf22
commit
9655b61c11
@@ -1,5 +1,7 @@
|
|||||||
name: Nightly
|
name: Nightly
|
||||||
on: [push]
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: 0 20 * * *
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_windows:
|
build_windows:
|
||||||
@@ -18,7 +20,7 @@ jobs:
|
|||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
||||||
./build_ci.bat
|
./ci/build_ci.bat
|
||||||
- name: Odin run
|
- name: Odin run
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
@@ -88,6 +90,7 @@ jobs:
|
|||||||
runs-on: [ubuntu-latest]
|
runs-on: [ubuntu-latest]
|
||||||
needs: [build_windows, build_macos, build_ubuntu]
|
needs: [build_windows, build_macos, build_ubuntu]
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
- name: Install B2 CLI
|
- name: Install B2 CLI
|
||||||
shell: bash
|
shell: bash
|
||||||
run: sudo pip install --upgrade b2
|
run: sudo pip install --upgrade b2
|
||||||
@@ -103,14 +106,12 @@ jobs:
|
|||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: macos_artifacts
|
name: macos_artifacts
|
||||||
- name: List artifacts
|
|
||||||
run: find . -type f -printf "%T@ %p\n" | sort -nr | cut -d\ -f2-
|
|
||||||
- name: Create archieves
|
- name: Create archieves
|
||||||
run: |
|
run: |
|
||||||
now=$(date +'%Y-%m-%d')
|
now=$(date +'%Y-%m-%d')
|
||||||
7z a test/odin-windows-amd64-nightly+$now.zip windows_artifacts/*
|
7z a output/odin-windows-amd64-nightly+$now.zip -r windows_artifacts/
|
||||||
7z a test/odin-ubuntu-amd64-nightly+$now.zip ubuntu_artifacts/*
|
7z a output/odin-ubuntu-amd64-nightly+$now.zip -r ubuntu_artifacts/
|
||||||
7z a test/odin-macos-amd64-nightly+$now.zip macos_artifacts/*
|
7z a output/odin-macos-amd64-nightly+$now.zip -r macos_artifact/
|
||||||
- name: Upload artifacts to b2
|
- name: Upload artifacts to b2
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
@@ -118,6 +119,8 @@ jobs:
|
|||||||
APPKEY: ${{ secrets.B2_APPKEY }}
|
APPKEY: ${{ secrets.B2_APPKEY }}
|
||||||
run: |
|
run: |
|
||||||
b2 authorize-account "$APPID" "$APPKEY"
|
b2 authorize-account "$APPID" "$APPKEY"
|
||||||
b2 sync --delete test b2://odin-binaries/nightly
|
b2 sync --keepDays 7 output b2://odin-binaries/nightly
|
||||||
|
python3 ci/create_nightly_json.py > nightly.json
|
||||||
|
b2 upload-file odin-binaries nightly.json nightly.json
|
||||||
b2 clear-account
|
b2 clear-account
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user