ci: add bootstrap step

This commit is contained in:
Jozef Steinhübl 2024-07-21 14:49:42 +02:00
parent 810681d97b
commit 0a2809b9d2
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -30,13 +30,16 @@ jobs:
- target: x86_64-unknown-linux-gnu - target: x86_64-unknown-linux-gnu
runner: ubuntu-latest runner: ubuntu-latest
archive: tar.gz archive: tar.gz
bootstrap: sudo apt-get update && sudo apt-get install -y libssl-dev
- target: x86_64-apple-darwin - target: x86_64-apple-darwin
runner: macos-latest runner: macos-latest
archive: tar.gz archive: tar.gz
bootstrap: brew install openssl
- target: aarch64-apple-darwin - target: aarch64-apple-darwin
runner: macos-latest runner: macos-latest
archive: tar.gz archive: tar.gz
bootstrap: brew install openssl
- target: x86_64-pc-windows-msvc - target: x86_64-pc-windows-msvc
runner: windows-latest runner: windows-latest
@ -50,6 +53,10 @@ jobs:
with: with:
targets: "${{ matrix.target }}" targets: "${{ matrix.target }}"
- name: bootstrap
if: ${{ matrix.bootstrap != "" }}
run: ${{ matrix.bootstrap }}
- name: build binary - name: build binary
run: cargo build -p discord-presence-lsp --verbose --locked --release --target ${{ matrix.target }} run: cargo build -p discord-presence-lsp --verbose --locked --release --target ${{ matrix.target }}