|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+name: test self-hosted runner
|
|
|
2
|
+
|
|
|
3
|
+on:
|
|
|
4
|
+ schedule:
|
|
|
5
|
+ # schedule build every night
|
|
|
6
|
+ - cron: "0 0 * * *"
|
|
|
7
|
+ workflow_dispatch:
|
|
|
8
|
+
|
|
|
9
|
+jobs:
|
|
|
10
|
+ build:
|
|
|
11
|
+ name: Build
|
|
|
12
|
+ #runs-on: ubuntu-22.04
|
|
|
13
|
+ runs-on: self-hosted
|
|
|
14
|
+ os: ubuntu-22.04
|
|
|
15
|
+ strategy:
|
|
|
16
|
+ fail-fast: false
|
|
|
17
|
+ matrix:
|
|
|
18
|
+ job:
|
|
|
19
|
+ - { name: "amd64", target: "x86_64-unknown-linux-musl" }
|
|
|
20
|
+ - { name: "arm64v8", target: "aarch64-unknown-linux-musl" }
|
|
|
21
|
+ - { name: "armv7", target: "armv7-unknown-linux-musleabihf" }
|
|
|
22
|
+ - { name: "i386", target: "i686-unknown-linux-musl" }
|
|
|
23
|
+ - { name: "amd64fb", target: "x86_64-unknown-freebsd" }
|
|
|
24
|
+
|
|
|
25
|
+ steps:
|
|
|
26
|
+
|
|
|
27
|
+ - name: Checkout
|
|
|
28
|
+ uses: actions/checkout@v3
|
|
|
29
|
+
|
|
|
30
|
+ - name: Install toolchain
|
|
|
31
|
+ uses: actions-rs/toolchain@v1
|
|
|
32
|
+ with:
|
|
|
33
|
+ toolchain: "stable"
|
|
|
34
|
+ override: true
|
|
|
35
|
+ default: true
|
|
|
36
|
+ components: rustfmt
|
|
|
37
|
+ profile: minimal
|
|
|
38
|
+ target: ${{ matrix.job.target }}
|
|
|
39
|
+
|
|
|
40
|
+ - name: Exec sqkx
|
|
|
41
|
+ run: |
|
|
|
42
|
+ cargo install sqlx-cli
|
|
|
43
|
+
|
|
|
44
|
+ - name: Build
|
|
|
45
|
+ uses: actions-rs/cargo@v1
|
|
|
46
|
+ with:
|
|
|
47
|
+ command: build
|
|
|
48
|
+ args: --release --target=${{ matrix.job.target }}
|
|
|
49
|
+ use-cross: true
|