|
|
@@ -1,53 +0,0 @@
|
|
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
|
|
- # need to docker login ghcr.io on self-hosted machine for cross build, use github username and personal token (lowest permission is fine)
|
|
14
|
|
- runs-on: self-hosted
|
|
15
|
|
- # Runner docker image
|
|
16
|
|
- # with container, it is hard to handle cross build (need docker in docker)
|
|
17
|
|
- #container:
|
|
18
|
|
- #image: archlinux/archlinux:base-devel
|
|
19
|
|
- strategy:
|
|
20
|
|
- fail-fast: false
|
|
21
|
|
- matrix:
|
|
22
|
|
- job:
|
|
23
|
|
- - { name: "amd64", target: "x86_64-unknown-linux-musl" }
|
|
24
|
|
- - { name: "arm64v8", target: "aarch64-unknown-linux-musl" }
|
|
25
|
|
- - { name: "armv7", target: "armv7-unknown-linux-musleabihf" }
|
|
26
|
|
- - { name: "i386", target: "i686-unknown-linux-musl" }
|
|
27
|
|
- - { name: "amd64fb", target: "x86_64-unknown-freebsd" }
|
|
28
|
|
-
|
|
29
|
|
- steps:
|
|
30
|
|
-
|
|
31
|
|
- - name: Checkout
|
|
32
|
|
- uses: actions/checkout@v3
|
|
33
|
|
-
|
|
34
|
|
- - name: Install toolchain
|
|
35
|
|
- uses: actions-rs/toolchain@v1
|
|
36
|
|
- with:
|
|
37
|
|
- toolchain: "stable"
|
|
38
|
|
- override: true
|
|
39
|
|
- default: true
|
|
40
|
|
- components: rustfmt
|
|
41
|
|
- profile: minimal
|
|
42
|
|
- target: ${{ matrix.job.target }}
|
|
43
|
|
-
|
|
44
|
|
- - name: Exec sqkx
|
|
45
|
|
- run: |
|
|
46
|
|
- cargo install sqlx-cli
|
|
47
|
|
-
|
|
48
|
|
- - name: Build
|
|
49
|
|
- uses: actions-rs/cargo@v1
|
|
50
|
|
- with:
|
|
51
|
|
- command: build
|
|
52
|
|
- args: --release --target=${{ matrix.job.target }}
|
|
53
|
|
- use-cross: true
|