Skip to content

Commit

Permalink
update workflows pre_release.yml release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
heqingpan committed Jan 12, 2025
1 parent eea0cc0 commit ebaeae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- x86_64-pc-windows-msvc
- i686-pc-windows-msvc
- aarch64-pc-windows-msvc
- aarch64-apple-darwin
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
Expand Down Expand Up @@ -72,10 +73,6 @@ jobs:
if: matrix.target == 'x86_64-unknown-linux-musl'
run: |
cargo build --release --target ${{ matrix.target }}
- name: Build linux-gnu
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: |
cargo build --release --target ${{ matrix.target }}
- name: Archive binary (windows)
if: matrix.os == 'windows-latest'
run: |
Expand All @@ -90,6 +87,8 @@ jobs:
cp ../../doc/conf/.env.example .env
tar czvf ../../${{ matrix.name }} rnacos .env
cd -
echo ${{ matrix.name }}
echo ${GITHUB_REF#refs/*/}
- name: Archive binary (linux-musl)
if: matrix.target =='x86_64-unknown-linux-musl'
run: |
Expand All @@ -100,16 +99,6 @@ jobs:
cd -
echo ${{ matrix.name }}
echo ${GITHUB_REF#refs/*/}
- name: Archive binary (linux-gnu)
if: matrix.target =='x86_64-unknown-linux-gnu'
run: |
# 注意,下面进入了三级目录,与上面两个打包操作路径不同
cd target/x86_64-unknown-linux-gnu/release
cp ../../../doc/conf/.env.example .env
tar czvf ../../../${{ matrix.name }} rnacos .env
cd -
echo ${{ matrix.name }}
echo ${GITHUB_REF#refs/*/}
- name: Upload binary artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,6 @@ jobs:
if: matrix.target == 'x86_64-unknown-linux-musl'
run: |
cargo build --release --target ${{ matrix.target }}
- name: Build linux-gnu
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: |
cargo build --release --target ${{ matrix.target }}
- name: Archive binary (windows)
if: matrix.os == 'windows-latest'
run: |
Expand All @@ -104,14 +98,6 @@ jobs:
cp ../../../doc/conf/.env.example .env
tar czvf ../../../${{ matrix.name }} rnacos .env
cd -
- name: Archive binary (linux-gnu)
if: matrix.target =='x86_64-unknown-linux-gnu'
run: |
# 注意,下面进入了三级目录,与上面两个打包操作路径不同
cd target/x86_64-unknown-linux-gnu/release
cp ../../../doc/conf/.env.example .env
tar czvf ../../../${{ matrix.name }} rnacos .env
cd -
- name: Upload binary artifacts
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit ebaeae6

Please sign in to comment.