From 0eefde3f4205457f1c179f2b5f9dab6cba2372fa Mon Sep 17 00:00:00 2001 From: Kai Schmidt Date: Tue, 11 Jun 2024 19:22:58 -0700 Subject: [PATCH] add webcam feature to some releases --- .github/workflows/release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16d7d4eb..3a4dbe5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,12 +43,12 @@ jobs: fail-fast: false matrix: include: - - { os: macos-latest, target: x86_64-apple-darwin } - - { os: macos-latest, target: aarch64-apple-darwin } - - { os: ubuntu-latest, target: x86_64-unknown-linux-gnu } - # - { os: ubuntu-latest, target: x86_64-unknown-linux-musl } - - { os: windows-latest, target: x86_64-pc-windows-msvc } - - { os: windows-latest, target: aarch64-pc-windows-msvc } + - { os: macos-latest, target: x86_64-apple-darwin, features: "audio" } + - { os: macos-latest, target: aarch64-apple-darwin, features: "audio" } + - { os: ubuntu-latest, target: x86_64-unknown-linux-gnu, features: "audio,webcam" } + # - { os: ubuntu-latest, target: x86_64-unknown-linux-musl, features: "audio" } + - { os: windows-latest, target: x86_64-pc-windows-msvc, features: "audio,webcam" } + - { os: windows-latest, target: aarch64-pc-windows-msvc, features: "audio" } steps: - uses: actions/checkout@v4 @@ -56,13 +56,13 @@ jobs: - if: matrix.target == 'x86_64-unknown-linux-musl' run: sudo apt-get install -y musl-tools - if: matrix.os == 'ubuntu-latest' - run: sudo apt-get install -y libasound2-dev libudev-dev libx11-dev libjpeg-dev + run: sudo apt-get install -y libasound2-dev libudev-dev libx11-dev libjpeg-dev libclang-dev # Build - name: Install target - run: rustup target add ${{ matrix.target }} + run: rustup target add ${{matrix.target}} - name: Build - run: cargo build --bin uiua --features audio --release --target ${{ matrix.target }} --verbose + run: cargo build --bin uiua --features ${{matrix.features}} --release --target ${{matrix.target}} --verbose - name: Zip run: 7z a -tzip uiua-bin-${{matrix.target}}.zip ./target/${{matrix.target}}/release/uiua${{env.BINARY_EXT}}