mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 08:17:40 +03:00
055c9b2450
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
53 lines
1.7 KiB
YAML
53 lines
1.7 KiB
YAML
on:
|
|
schedule:
|
|
- cron: '0 9 * * *'
|
|
|
|
name: Nightly Release Linux x86_64
|
|
|
|
jobs:
|
|
build:
|
|
name: Rust tests, build and package nightly release
|
|
runs-on: [self-hosted, i7-6700K]
|
|
timeout-minutes: 90
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: create version.txt
|
|
run: ./ci/write_version.sh
|
|
|
|
- name: build release
|
|
run: RUSTFLAGS="-C target-cpu=x86-64" cargo build --features with_sound --release --locked
|
|
# target-cpu=x86-64 -> For maximal compatibility for all CPU's. Note that this setting will likely make the compiler slower.
|
|
|
|
- name: get commit SHA
|
|
run: echo "SHA=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV
|
|
|
|
- name: get date
|
|
run: echo "DATE=$(date "+%Y-%m-%d")" >> $GITHUB_ENV
|
|
|
|
- name: build file name
|
|
env:
|
|
DATE: ${{ env.DATE }}
|
|
SHA: ${{ env.SHA }}
|
|
run: echo "RELEASE_TAR_FILENAME=roc_nightly-linux_x86_64-$DATE-$SHA.tar.gz" >> $GITHUB_ENV
|
|
|
|
- name: Make nightly release tar archive
|
|
run: ./ci/package_release.sh ${{ env.RELEASE_TAR_FILENAME }}
|
|
|
|
- name: Upload roc nightly tar. Actually uploading to github releases has to be done manually.
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ${{ env.RELEASE_TAR_FILENAME }}
|
|
path: ${{ env.RELEASE_TAR_FILENAME }}
|
|
retention-days: 4
|
|
|
|
- name: build wasm repl
|
|
run: ./ci/www-repl.sh
|
|
|
|
- name: Upload wasm repl tar. Actually uploading to github releases has to be done manually.
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: roc_repl_wasm.tar.gz
|
|
path: roc_repl_wasm.tar.gz
|
|
retention-days: 4
|