diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a2ba156..029c532 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -108,6 +108,7 @@ jobs: os: macOS-latest features: auto-splitting cross: skip + install_target: true - label: macOS x86_64-v3 target: x86_64-apple-darwin @@ -116,6 +117,7 @@ jobs: os: macOS-latest features: auto-splitting cross: skip + install_target: true steps: - name: Checkout Commit @@ -124,7 +126,7 @@ jobs: - name: Install Rust uses: hecrj/setup-rust-action@v2 with: - rust-version: ${{ matrix.toolchain || 'stable' }} + rust-version: 'stable' - name: Install Target if: matrix.install_target != '' @@ -157,12 +159,12 @@ jobs: env: TARGET: ${{ matrix.target }} SKIP_CROSS: ${{ matrix.cross }} - IS_DEPLOY: ${{ startsWith(github.ref, 'refs/tags/') && (matrix.release_anyway != '' || !(startsWith(matrix.toolchain, 'nightly') || startsWith(matrix.toolchain, 'beta'))) }} + IS_DEPLOY: ${{ startsWith(github.ref, 'refs/tags/') }} FEATURES: ${{ matrix.features }} RUSTFLAGS: ${{ matrix.rust_flags }} - name: Prepare Release - if: startsWith(github.ref, 'refs/tags/') && matrix.release == '' + if: startsWith(github.ref, 'refs/tags/') run: bash .github/workflows/before_deploy.sh env: OS_NAME: ${{ matrix.os }} @@ -170,7 +172,7 @@ jobs: RELEASE_TARGET: ${{ matrix.target_rename || matrix.target }} - name: Release - if: startsWith(github.ref, 'refs/tags/') && matrix.release == '' + if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: files: livesplit-one-*.* diff --git a/src/config.rs b/src/config.rs index 90e22d0..6eaca1b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -251,6 +251,7 @@ impl Config { &mut self, shared_timer: &SharedTimer, layout_data: &mut LayoutData, + #[cfg(feature = "auto-splitting")] auto_splitter: &livesplit_core::auto_splitting::Runtime, path: PathBuf, ) -> Result<()> { diff --git a/src/timer_form.rs b/src/timer_form.rs index 3767d0d..b038d9b 100644 --- a/src/timer_form.rs +++ b/src/timer_form.rs @@ -351,6 +351,7 @@ impl> Widget for WithMenu { let result = data.config.borrow_mut().open_splits( &data.timer, &mut data.layout_data.borrow_mut(), + #[cfg(feature = "auto-splitting")] &data.auto_splitter, file_info.path().to_path_buf(), );