Skip to content

Commit

Permalink
add webcam feature to some releases
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jun 12, 2024
1 parent 10c2053 commit 0eefde3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,26 @@ 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

# Install dependencies
- 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}}
Expand Down

0 comments on commit 0eefde3

Please sign in to comment.