a #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: [push, pull_request] | |
jobs: | |
publish: | |
name: publish | |
runs-on: ubuntu-22.04 | |
container: registry.cn-shanghai.aliyuncs.com/lebai/util:14.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install ali ossutil | |
uses: yizhoumo/setup-ossutil@v2 | |
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 | |
target: x86_64-unknown-linux-gnu, 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 |