Skip to content

Commit

Permalink
update dockerfile and workflows/release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
heqingpan committed Mar 1, 2024
1 parent 293047b commit 575bcf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@ jobs:
if: matrix.os == 'windows-latest'
run: |
cd target/release
7z a ../../${{ matrix.name }} ${{ github.event.repository.name }}.exe
7z a ../../${{ matrix.name }} rnacos.exe
cd -
- name: Archive binary (linux and macOS)
if: ${{ matrix.os != 'windows-latest' && matrix.target !='x86_64-unknown-linux-musl' }}
run: |
cd target/release
tar czvf ../../${{ matrix.name }} ${{ github.event.repository.name }}
tar czvf ../../${{ matrix.name }} rnacos
cd -
- name: Archive binary (linux-musl)
if: matrix.target =='x86_64-unknown-linux-musl'
run: |
cd target/x86_64-unknown-linux-musl/release
tar czvf ../../../${{ matrix.name }} ${{ github.event.repository.name }}
tar czvf ../../../${{ matrix.name }} rnacos
cd -
- name: Upload binary artifacts
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM rust:1.72 as builder
FROM --platform=$BUILDPLATFORM rust:latest as builder
WORKDIR /usr/src/rnacos
COPY . .
RUN cargo install --path .
Expand Down

0 comments on commit 575bcf5

Please sign in to comment.