-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (54 loc) · 1.78 KB
/
run-debug.yml
File metadata and controls
64 lines (54 loc) · 1.78 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
name: Run Debug Build
on:
workflow_dispatch:
permissions:
# To publish packages with provenance
id-token: write
contents: write
# Allow commenting on issues for `reusable-build.yml`
issues: write
jobs:
matrix-build:
strategy:
matrix:
include:
# Linux targets (GNU)
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu # 64位 Linux (GNU)
use-cross: true
cross-image: ghcr.io/cross-rs/x86_64-unknown-linux-gnu:edge
# Linux targets (MUSL)
- os: ubuntu-latest
target: x86_64-unknown-linux-musl # 64位 Linux (MUSL)
use-cross: true
cross-image: ghcr.io/cross-rs/x86_64-unknown-linux-musl:edge
# Windows targets
- os: windows-latest
target: x86_64-pc-windows-msvc # 64位 Windows (MSVC)
- os: windows-latest
target: x86_64-pc-windows-gnu # 64位 Windows (MinGW)
# macOS targets
- os: macos-14
target: aarch64-apple-darwin # Apple Silicon Mac
- os: macos-13
target: x86_64-apple-darwin # Intel Mac
name: ${{ matrix.target }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
with:
target: ${{ matrix.target }}
- name: Build ${{ matrix.target }}
uses: ./.github/actions/build
with:
target: ${{ matrix.target }}
os: ${{ matrix.os }}
use-cross: ${{ matrix.use-cross }}
cross-image: ${{ matrix.cross-image }}
- name: Upload ${{ matrix.target }}
uses: ./.github/actions/upload
with:
target: ${{ matrix.target }}