mirror of
https://github.com/EasyTier/EasyTier.git
synced 2024-11-16 03:32:43 +08:00
parent
6f8ca8bbb2
commit
e3f2765fed
20
.github/workflows/rust.yml
vendored
20
.github/workflows/rust.yml
vendored
|
@ -4,7 +4,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [ "develop", "main" ]
|
branches: [ "develop", "main" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "develop", "main" ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
@ -48,7 +48,7 @@ jobs:
|
||||||
uses: actions/cache@v4.0.0
|
uses: actions/cache@v4.0.0
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo
|
||||||
./target
|
./target
|
||||||
key: build-cargo-registry-${{matrix.TARGET}}
|
key: build-cargo-registry-${{matrix.TARGET}}
|
||||||
- name: Install rust target
|
- name: Install rust target
|
||||||
|
@ -74,7 +74,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
mv ./target/$TARGET/release/easytier-core"$SUFFIX" ./artifacts/objects/
|
mv ./target/$TARGET/release/easytier-core"$SUFFIX" ./artifacts/objects/
|
||||||
mv ./target/$TARGET/release/easytier-cli"$SUFFIX" ./artifacts/objects/
|
mv ./target/$TARGET/release/easytier-cli"$SUFFIX" ./artifacts/objects/
|
||||||
tar -cvf ./artifacts/$NAME-$TARGET-$TAG.tar ./artifacts/objects/*
|
tar -cvf ./artifacts/$NAME-$TARGET-$TAG.tar -C ./artifacts/objects/ .
|
||||||
rm -rf ./artifacts/objects/
|
rm -rf ./artifacts/objects/
|
||||||
- name: Archive artifact
|
- name: Archive artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
@ -82,6 +82,18 @@ jobs:
|
||||||
name: easytier-${{ matrix.OS }}-${{ matrix.TARGET }}
|
name: easytier-${{ matrix.OS }}-${{ matrix.TARGET }}
|
||||||
path: |
|
path: |
|
||||||
./artifacts/*
|
./artifacts/*
|
||||||
|
- name: Upload OSS
|
||||||
|
uses: Menci/upload-to-oss@main
|
||||||
|
with:
|
||||||
|
access-key-id: ${{ secrets.ALIYUN_OSS_ACCESS_ID }}
|
||||||
|
access-key-secret: ${{ secrets.ALIYUN_OSS_ACCESS_KEY }}
|
||||||
|
endpoint: ${{ secrets.ALIYUN_OSS_ENDPOINT }}
|
||||||
|
bucket: ${{ secrets.ALIYUN_OSS_BUCKET }}
|
||||||
|
local-path: ./artifacts/
|
||||||
|
remote-path: /easytier-releases/${{ github.sha }}/
|
||||||
|
no-delete-remote-files: true
|
||||||
|
retry: 5
|
||||||
|
increment: true
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -101,7 +113,7 @@ jobs:
|
||||||
uses: actions/cache@v4.0.0
|
uses: actions/cache@v4.0.0
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo
|
||||||
./target
|
./target
|
||||||
key: build-cargo-registry-test
|
key: build-cargo-registry-test
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|
Loading…
Reference in New Issue
Block a user