Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
rise0chen committed Dec 16, 2024
1 parent d522618 commit 77904fb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
push: false
tags: lebai/plugin:latest
build-args: |
AWS_ENDPOINT: ${{ secrets.AWS_ENDPOINT }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ENDPOINT=${{ secrets.AWS_ENDPOINT }}
AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ COPY . .
ARG AWS_ENDPOINT
ARG AWS_ACCESS_KEY_ID
ARG AWS_SECRET_ACCESS_KEY
ENV AWS_ENDPOINT=${AWS_ENDPOINT}
ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
ENV AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
ENV EAWS_ENDPOINT=${AWS_ENDPOINT}
ENV EAWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
ENV EAWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}

RUN echo ${AWS_ENDPOINT}
RUN echo ${AWS_ACCESS_KEY_ID}
RUN echo ${AWS_SECRET_ACCESS_KEY}
RUN echo ${EAWS_ENDPOINT}
RUN echo ${EAWS_ACCESS_KEY_ID}
RUN echo ${EAWS_SECRET_ACCESS_KEY}

RUN bash ./ci.sh
8 changes: 8 additions & 0 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
set -e
cd "$(dirname "$0")"

echo AWS_ENDPOINT=$AWS_ENDPOINT
echo AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
echo AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY

echo EAWS_ENDPOINT=$EAWS_ENDPOINT
echo EAWS_ACCESS_KEY_ID=$EAWS_ACCESS_KEY_ID
echo EAWS_SECRET_ACCESS_KEY=$EAWS_SECRET_ACCESS_KEY

mkdir -p .oss
arr=()
for dir in `ls`
Expand Down
6 changes: 6 additions & 0 deletions modbus_rtu_slave/bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ lebai_sdk = {version = "0.2", default-features = false}
tokio = {version = "1", default-features = false, features = ["macros", "rt-multi-thread", "sync"]}
tokio-modbus = {version = "0.15", default-features = false, features = ["tcp", "rtu-server"]}
tokio-serial = {version = "5", default-features = false}

[profile.dev]
lto = "thin"

[profile.release]
lto = "thin"

0 comments on commit 77904fb

Please sign in to comment.