Skip to content

Commit

Permalink
ci: Fix windows deep-filter build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikorose committed Oct 26, 2022
1 parent af5d24a commit f0c9901
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ jobs:
# Emit backtraces on panics.
RUST_BACKTRACE: 1
strategy:
fail-fast: true
fail-fast: false
matrix:
build: [linux-x86, linux-arm-v7, linux-arm-aarch64, macos-x86, macos-aarch64, win-msvc]
include:
Expand All @@ -296,6 +296,7 @@ jobs:
- build: win-msvc
os: windows-2022
target: x86_64-pc-windows-msvc
ext: .exe
defaults:
run:
shell: bash
Expand Down Expand Up @@ -323,14 +324,14 @@ jobs:
echo "target dir is: ${{ env.TARGET_DIR }}"
echo "DF_VERSION=${{ needs.create-release.outputs.df_version }}" >> $GITHUB_ENV
echo "DF version is: ${{ env.DF_VERSION }}"
echo "DF_BIN_NAME=deep-filter-${{ env.DF_VERSION }}-${{ matrix.target }}" >> $GITHUB_ENV
echo "DF_BIN_NAME=deep-filter-${{ env.DF_VERSION }}-${{ matrix.target }}${{ matrix.ext }}" >> $GITHUB_ENV
- name: Build release binary
run: ${{ env.CARGO }} build --verbose --features bin,tract,use-jemalloc,wav-utils --profile=release-lto -p deep_filter --bin deep-filter ${{ env.TARGET_FLAGS }}

- name: Rename to target
run: |
mv "target/${{ matrix.target }}/release-lto/deep-filter" "${{ env.TARGET_DIR }}/${{ env.DF_BIN_NAME }}"
mv "target/${{ matrix.target }}/release-lto/deep-filter${{ matrix.ext }}" "${{ env.TARGET_DIR }}/${{ env.DF_BIN_NAME }}"
chmod +x "${{ env.TARGET_DIR }}/${{ env.DF_BIN_NAME }}"
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit f0c9901

Please sign in to comment.