Skip to content

Commit

Permalink
fix ci for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
GiviMAD committed Mar 14, 2023
1 parent 691968f commit 3611cde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
shell: powershell
- name: build binary
run: |
cargo build --release --features dist
cargo build --release
ls target/release/
mkdir output
cp target/release/rustpotter-cli.exe output/rustpotter-cli_win_x86_64.exe
Expand All @@ -105,11 +105,11 @@ jobs:
- name: build binary
run: |
export DYLD_LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/
cargo build --release --features dist
cargo build --release
mkdir output
cp target/release/rustpotter-cli output/rustpotter-cli_macos_x86_64
rustup target add aarch64-apple-darwin
cargo build --target aarch64-apple-darwin --release --features dist
cargo build --target aarch64-apple-darwin --release
cp target/aarch64-apple-darwin/release/rustpotter-cli output/rustpotter-cli_macos_aarch64
- name: artifact macos x86_64
uses: actions/upload-artifact@v3
Expand Down
8 changes: 4 additions & 4 deletions tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ RUN mkdir -p /code/.cargo \
FROM rust:buster
COPY src /code/src
COPY Cargo.* /code/
COPY build.rs /code/
COPY --from=rust_vendor /code/.cargo /code/.cargo
COPY --from=rust_vendor /code/vendor /code/vendor
WORKDIR code
RUN rustup component add rustfmt && \
cargo build --release --features dist --offline && \
RUN apt update && \
apt install -y libasound2-dev && \
rustup component add rustfmt && \
cargo build --release --offline && \
mkdir -p output && \
cp target/release/rustpotter-cli output/rustpotter-cli_debian_$(arch) && \
rm -rf target

0 comments on commit 3611cde

Please sign in to comment.