diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 11bc3bb..f0d3124 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/Dockerfile b/Dockerfile index fe05ac9..68f438d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/ci.sh b/ci.sh index 7b9adae..c07753a 100644 --- a/ci.sh +++ b/ci.sh @@ -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` diff --git a/modbus_rtu_slave/bin/Cargo.toml b/modbus_rtu_slave/bin/Cargo.toml index 1270805..d27fe2d 100644 --- a/modbus_rtu_slave/bin/Cargo.toml +++ b/modbus_rtu_slave/bin/Cargo.toml @@ -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"