Skip to content

Commit

Permalink
CI: Deploy rav1e-ch in a new job
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 authored and lu-zero committed Jul 29, 2022
1 parent a032861 commit 3699da3
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,33 @@ on:
- 'p*'

jobs:
windows-rav1e-ch-binary:

if: github.repository_owner == 'xiph'
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- uses: ilammy/setup-nasm@v1

- name: Install stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Build rav1e-ch (unstable)
env:
RUSTFLAGS: "-C target-feature=+avx2,+fma"
run: cargo build --release --features=unstable,channel-api --bin=rav1e-ch

- name: Upload rav1e-ch msvc binary (unstable)
uses: actions/upload-artifact@v2
with:
path: target/release/rav1e-ch.exe


windows-binaries:
strategy:
matrix:
Expand Down Expand Up @@ -93,12 +120,6 @@ jobs:
7z a "$ZIP_PREFIX-${{ matrix.conf }}.zip" `
"C:\usr\rav1e-windows-${{ matrix.conf }}-sdk"
- name: Build rav1e-ch (unstable)
if: matrix.conf == 'msvc'
env:
RUSTFLAGS: "-C target-feature=+avx2,+fma"
run: cargo build --profile ${{ matrix.profile }} --features=unstable,channel-api --bin=rav1e-ch

- name: Upload rav1e msvc binary
if: matrix.conf == 'msvc'
uses: actions/upload-artifact@v2
Expand All @@ -118,11 +139,6 @@ jobs:
with:
path: rav1e-${{ steps.tagName.outputs.version }}-windows-${{ matrix.conf }}.zip

- name: Upload rav1e-ch msvc binary (unstable)
if: matrix.conf == 'msvc'
uses: actions/upload-artifact@v2
with:
path: target/${{ matrix.profile }}/rav1e-ch.exe

linux-binaries:
strategy:
Expand Down Expand Up @@ -282,7 +298,7 @@ jobs:
path: rav1e-${{ steps.tagName.outputs.version }}-macos.zip

deploy:
needs: [windows-binaries, linux-binaries, macos-binaries]
needs: [windows-rav1e-ch-binary, windows-binaries, linux-binaries, macos-binaries]
if: github.repository_owner == 'xiph'
runs-on: ubuntu-latest

Expand Down

0 comments on commit 3699da3

Please sign in to comment.