Commit e096318 1 parent c9d9d81 commit e096318 Copy full SHA for e096318
File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build avatar-bot
2
+
3
+ on : [push]
4
+
5
+ env :
6
+ BUILDER_IMAGE : ghcr.io/nanpuyue/avatar-bot-builder
7
+
8
+ jobs :
9
+ build :
10
+ name : build for ${{ matrix.arch }}
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ include :
16
+ - arch : amd64
17
+ - arch : arm64
18
+ permissions :
19
+ packages : write
20
+ contents : read
21
+ steps :
22
+ - name : Check out the repo
23
+ uses : actions/checkout@v4
24
+ - name : Set up QEMU
25
+ uses : docker/setup-qemu-action@v3
26
+ - name : Build avatar-bot
27
+ run : |
28
+ docker run --platform=linux/${{ matrix.arch }}\
29
+ -e RUSTFLAGS="-C opt-level=s -C link-arg=-s"\
30
+ -v "$PWD":"/build/avatar-bot"\
31
+ --workdir "/build/avatar-bot"\
32
+ ghcr.io/nanpuyue/avatar-bot-builder:latest\
33
+ cargo build --release
34
+ - name : Upload digest
35
+ uses : actions/upload-artifact@v4
36
+ with :
37
+ name : avatar-bot.${{ matrix.arch }}
38
+ path : ./target/release/avatar-bot
39
+ if-no-files-found : error
40
+ retention-days : 30
You can’t perform that action at this time.
0 commit comments