-
-
Notifications
You must be signed in to change notification settings - Fork 68
77 lines (72 loc) · 2.1 KB
/
Copy pathnightly.yml
File metadata and controls
77 lines (72 loc) · 2.1 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Nightly Build
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
env:
CHANNEL: -nightly
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, macOS-latest, windows-latest, windows-11-arm]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
- name: Checkout
uses: actions/checkout@v6
with:
submodules: 'true'
- name: Setup MUSL
if: matrix.os == 'ubuntu-latest'
run: |
rustup target add x86_64-unknown-linux-musl
sudo apt-get -qq install musl-tools
- name: Setup MUSL for aarch64
if: matrix.os == 'ubuntu-24.04-arm'
run: |
rustup target add aarch64-unknown-linux-musl
sudo apt-get -qq install musl-tools
- name: Setup aarch64 mac
if: matrix.os == 'macOS-latest'
run: |
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
- name: Build for linux
if: matrix.os == 'ubuntu-latest'
run: |
make release_lnx
- name: Build for linux aarch64
if: matrix.os == 'ubuntu-24.04-arm'
run: |
make release_lnx_aarch64
- name: Build for macOS
if: matrix.os == 'macOS-latest'
run: make release_mac
- name: Build for Windows
if: matrix.os == 'windows-latest'
run: make release_win
- name: Build for Windows aarch64
if: matrix.os == 'windows-11-arm'
run: make release_win_aarch64
- name: Create version file
run: make release_version
- name: Move archives
run: |
mkdir -p upload
mv *.zip upload
mv version upload
- name: Upload
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: ${{ secrets.R2_BUCKET }}
source-dir: upload
destination-dir: ./toolchain/nightly/