summaryrefslogtreecommitdiffstats
path: root/.github/workflows/cd.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/cd.yml')
-rw-r--r--.github/workflows/cd.yml30
1 files changed, 7 insertions, 23 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 31ef76f..641c9cb 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -21,20 +21,13 @@ jobs:
target: aarch64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- container: rust
- dependencies: "libssl-dev libasound2-dev libdbus-1-dev"
+ dependencies: "libssl-dev"
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
- container: rustembedded/cross:aarch64-unknown-linux-gnu
- cross_arch: "arm64"
- pkg_config_path: "/usr/lib/aarch64-linux-gnu/pkgconfig/"
- dependencies: "libssl-dev:arm64 libasound2-dev:arm64 libdbus-1-dev:arm64"
+ cross_arch: true
- os: ubuntu-latest
target: armv7-unknown-linux-gnueabihf
- cross_arch: "armhf"
- pkg_config_path: "/usr/lib/arm-linux-gnueabihf/pkgconfig/"
- container: rustembedded/cross:armv7-unknown-linux-gnueabihf
- dependencies: "libssl-dev:armhf libasound2-dev:armhf libdbus-1-dev:armhf"
+ cross_arch: true
- os: windows-latest
target: x86_64-pc-windows-msvc
@@ -42,28 +35,19 @@ jobs:
- name: Checkout source
uses: actions/checkout@v2
- - name: Set up cross compilation
- if: matrix.cross_arch
- run: |
- dpkg --add-architecture ${{ matrix.cross_arch }}
- echo "PKG_CONFIG_PATH=${{ matrix.pkg_config_path }}" >> $GITHUB_ENV
- echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV
-
- name: Install Linux dependencies
if: matrix.dependencies
- run: apt update && apt install -y ${{ matrix.dependencies }}
+ run: sudo apt-get update && sudo apt-get install -y ${{ matrix.dependencies }}
- name: Install Rust toolchain
- uses: actions-rs/toolchain@v1
+ uses: dtolnay/rust-toolchain@stable
with:
- toolchain: stable
- override: true
- profile: minimal
- target: ${{ matrix.target }}
+ targets: ${{ matrix.target }}
- name: Build
uses: actions-rs/cargo@v1
with:
+ use-cross: ${{ matrix.cross_arch }}
command: build
args: --locked --release --target ${{ matrix.target }}