Skip to content

Nightly Build

Nightly Build #131

Workflow file for this run

name: Nightly Build
permissions:
"contents": "write"
# Schedule this workflow to run at midnight every day
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
binary_extension: ""
- target: x86_64-apple-darwin
os: macos-13
binary_extension: ""
- target: aarch64-apple-darwin
os: macos-14
- target: x86_64-pc-windows-msvc
os: windows-latest
binary_extension: ".exe"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.target }}
- name: Build
run: cargo build --target ${{ matrix.target }} --release --locked --bin boa
- name: Upload Binaries
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/${{ matrix.target }}/release/boa${{ matrix.binary_extension }}
asset_name: boa-${{ matrix.target }}-${{ matrix.binary_extension }}
tag: refs/tags/nightly
overwrite: true
prerelease: true