Fix aconcli build error (#38) #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Debian Builds | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Debian builds | |
shell: docker build --progress=plain -t acond -f {0} . | |
run: | | |
FROM rust:slim | |
RUN apt update -y && \ | |
apt upgrade -y && \ | |
apt install -y pkg-config libssl-dev git musl-tools protobuf-compiler libprotobuf-dev | |
COPY . ACON | |
RUN cd ACON/acond && \ | |
CARGO_BUILD_RUSTFLAGS=-Ctarget-feature=-crt-static cargo build --release |