diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 7c09c6e..2d5f1b3 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - target: ["armv7-unknown-linux-gnueabihf", "aarch64-unknown-linux-gnu"] + target: ["armv7-unknown-linux-gnueabihf", "aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu"] steps: - uses: actions/checkout@v3 - run: cargo fmt --check @@ -25,5 +25,6 @@ jobs: with: files: |- target/${{ matrix.target }}/release/cbd-tui + target/${{ matrix.target }}/release/crabidy-server api_key: '${{secrets.RELEASE_TOKEN}}' pre_release: true diff --git a/Cross.toml b/Cross.toml index 17444d8..5c2004a 100644 --- a/Cross.toml +++ b/Cross.toml @@ -6,3 +6,6 @@ dockerfile = "./armv7-unknown-linux-gnueabihf-Dockerfile" xargo = false dockerfile = "./aarch64-unknown-linux-gnu-Dockerfile" +[target.x86_64-unknown-linux-gnu] +xargo = false +dockerfile = "./x86_64-unknown-linux-gnu-Dockerfile" diff --git a/x86_64-unknown-linux-gnu-Dockerfile b/x86_64-unknown-linux-gnu-Dockerfile new file mode 100644 index 0000000..67afb59 --- /dev/null +++ b/x86_64-unknown-linux-gnu-Dockerfile @@ -0,0 +1,4 @@ +FROM ghcr.io/cross-rs/x86_64-unknown-linux-gnu:edge +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y alsa librust-alsa-sys-dev libasound2-dev portaudio19-dev build-essential libpulse-dev libdbus-1-dev pkg-config apt-utils unzip +RUN curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v23.2/protoc-23.2-linux-x86_64.zip && unzip protoc-23.2-linux-x86_64.zip