-
-
Notifications
You must be signed in to change notification settings - Fork 420
49 lines (44 loc) · 1.36 KB
/
nightly_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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 to release
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