File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Weekly Build
2+
3+ on :
4+ schedule :
5+ # Run every Sunday at midnight UTC (0 0 * * 0)
6+ - cron : ' 0 0 * * 0'
7+ # Allow manual triggering for testing
8+ workflow_dispatch :
9+
10+ jobs :
11+ build :
12+ name : Weekly Build
13+ runs-on : ${{ matrix.os }}
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ include :
18+ - os : windows-latest
19+ target : x86_64-pc-windows-msvc
20+ - os : windows-latest
21+ target : aarch64-pc-windows-msvc
22+ - os : ubuntu-latest
23+ target : x86_64-unknown-linux-musl
24+ # - os: ubuntu-latest
25+ # target: aarch64-unknown-linux-gnu
26+ # - os: ubuntu-latest
27+ # target: arm-unknown-linux-gnueabihf
28+ - os : macos-latest
29+ target : x86_64-apple-darwin
30+ - os : macos-14
31+ target : aarch64-apple-darwin
32+ # - os: ubuntu-latest
33+ # target: x86_64-unknown-linux-gnu
34+ # - os: ubuntu-latest
35+ # target: aarch64-unknown-linux-musl
36+ steps :
37+ - name : Checkout
38+ uses : actions/checkout@v4
39+
40+ - name : Rust Tool Chain setup
41+ uses : dtolnay/rust-toolchain@stable
42+ with :
43+ toolchain : stable
44+ targets : ${{ matrix.target }}
45+
46+ - name : Cargo Fetch
47+ run : cargo fetch
48+
49+ - name : Build
50+ run : cargo build --release --target ${{ matrix.target }}
51+
52+ - name : Upload Artifact
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : pet-${{ matrix.target }}-weekly
56+ path : target/${{ matrix.target }}/release/pet*
You can’t perform that action at this time.
0 commit comments