-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.54 KB
/
publish.yml
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
name: Publish
on: [push, pull_request]
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
publish:
name: publish
runs-on: ubuntu-latest
container: registry.cn-shanghai.aliyuncs.com/lebai/util:14.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install Tools
run: |
sudo apt-get update
sudo apt-get install -y zip
- name: Install ali ossutil
uses: manyuanrong/[email protected]
with:
endpoint: ${{ secrets.AWS_ENDPOINT }}
access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
access-key-secret: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install rust targets
run: |
rustup target add x86_64-unknown-linux-gnu
rustup target add aarch64-unknown-linux-gnu
- uses: Swatinem/rust-cache@v2
continue-on-error: true
- name: Install Cross Compiler
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu libc6-dev-arm64-cross
- name: Publish
env:
AWS_ENDPOINT: ${{ secrets.AWS_ENDPOINT }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: bash ./ci.sh