From ee00a8a2e2219009db511ee469077538dc119c1a Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Tue, 30 Jul 2024 18:37:29 +0900 Subject: [PATCH] add actions for wivrn build --- .github/workflows/check-wivrn.yaml | 26 ++++++++++++++++++++++++++ .github/workflows/make-release.yml | 15 +++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/check-wivrn.yaml diff --git a/.github/workflows/check-wivrn.yaml b/.github/workflows/check-wivrn.yaml new file mode 100644 index 0000000..7b5327d --- /dev/null +++ b/.github/workflows/check-wivrn.yaml @@ -0,0 +1,26 @@ +name: Check ALVR + +on: + push: + #branches: [ "main" ] + pull_request: + #branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.3 + - name: Prepare Environment + run: | + rustup update stable + - name: Build + run: cargo build --verbose --no-default-features --features=wivrn + diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml index 2d09891..ddf7a03 100644 --- a/.github/workflows/make-release.yml +++ b/.github/workflows/make-release.yml @@ -41,6 +41,21 @@ jobs: asset_name: oscavmgr-alvr asset_content_type: application/octet-stream + - name: Cargo Build WiVRn + run: | + cargo build --no-default-features --features=wivrn --release + chmod +x target/release/oscavmgr + + - name: Upload WiVRn + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./target/release/oscavmgr + asset_name: oscavmgr-wivrn + asset_content_type: application/octet-stream + - name: Cargo Build Babble run: | cargo build --no-default-features --features=babble --release