diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf67130..56e935f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,7 @@ on: pull_request: env: + BUILD_PROFILE: release-lto CARGO_BIN_NAME: dtk CARGO_TARGET_DIR: target @@ -131,16 +132,16 @@ jobs: with: targets: ${{ matrix.target }} - name: Cargo build - run: cargo ${{ matrix.build }} --profile release-lto --all-features --target ${{ matrix.target }} --bin ${{ env.CARGO_BIN_NAME }} + run: cargo ${{ matrix.build }} --profile ${{ env.BUILD_PROFILE }} --all-features --target ${{ matrix.target }} --bin ${{ env.CARGO_BIN_NAME }} - name: Upload artifacts uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }} path: | - ${{ env.CARGO_TARGET_DIR }}/release/${{ env.CARGO_BIN_NAME }} - ${{ env.CARGO_TARGET_DIR }}/release/${{ env.CARGO_BIN_NAME }}.exe - ${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/release/${{ env.CARGO_BIN_NAME }} - ${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/release/${{ env.CARGO_BIN_NAME }}.exe + ${{ env.CARGO_TARGET_DIR }}/${{ env.BUILD_PROFILE }}/${{ env.CARGO_BIN_NAME }} + ${{ env.CARGO_TARGET_DIR }}/${{ env.BUILD_PROFILE }}/${{ env.CARGO_BIN_NAME }}.exe + ${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/${{ env.BUILD_PROFILE }}/${{ env.CARGO_BIN_NAME }} + ${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/${{ env.BUILD_PROFILE }}/${{ env.CARGO_BIN_NAME }}.exe if-no-files-found: error release: