diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..44f5319 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +# Copyright (C) 2023 Daniel Mueller +# SPDX-License-Identifier: GPL-3.0-or-later + +name: Build + +on: + workflow_dispatch: + +jobs: + build: + name: Build statically linked binary + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install dependencies + run: sudo apt-get install musl-tools + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + target: x86_64-unknown-linux-musl + - run: | + cargo install --bin=apcacli --features=vendored-openssl --path=. --root=. --target x86_64-unknown-linux-musl + strip bin/apcacli + - uses: actions/upload-artifact@v3 + with: + name: apcacli + path: bin/apcacli