fix: 更改action文件
This commit is contained in:
parent
d594911813
commit
0075bec3ae
|
|
@ -12,9 +12,12 @@ jobs:
|
||||||
|
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
uses: https://git.airpig.cn/actions/setup-rust-toolchain@v1
|
uses: https://git.airpig.cn/actions/setup-rust-toolchain@v1
|
||||||
with:
|
|
||||||
cache: false
|
- name: Add target for musl
|
||||||
|
run: |
|
||||||
|
apt update && apt install -y musl-tools
|
||||||
|
rustup target add x86_64-unknown-linux-musl
|
||||||
|
|
||||||
- name: Cache cargo registry and build
|
- name: Cache cargo registry and build
|
||||||
uses: https://gitea.com/actions/cache@v3
|
uses: https://gitea.com/actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -23,14 +26,13 @@ jobs:
|
||||||
~/.cargo/registry/index/
|
~/.cargo/registry/index/
|
||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
target/
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-registry-
|
${{ runner.os }}-cargo-
|
||||||
|
|
||||||
- name: Build for musl
|
- name: Cargo build release for musl
|
||||||
run: |
|
run: |
|
||||||
apt update && apt install -y musl-tools
|
|
||||||
rustup target add x86_64-unknown-linux-musl
|
|
||||||
cargo build -r --target x86_64-unknown-linux-musl
|
cargo build -r --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
- name: Login to hub.airpig.cn
|
- name: Login to hub.airpig.cn
|
||||||
|
|
@ -42,7 +44,6 @@ jobs:
|
||||||
|
|
||||||
- name: Build Docker image and push
|
- name: Build Docker image and push
|
||||||
run: |
|
run: |
|
||||||
ls
|
|
||||||
repo="sched_task"
|
repo="sched_task"
|
||||||
version=$(grep -E '^version' "Cargo.toml" | awk -F'"' '{print $2}')
|
version=$(grep -E '^version' "Cargo.toml" | awk -F'"' '{print $2}')
|
||||||
new_version="v${version}"
|
new_version="v${version}"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "sched_tasks_rs"
|
name = "sched_tasks_rs"
|
||||||
version = "1.1.4"
|
version = "1.1.5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue