From 50eb08b1b23714ab43e9457b92ec799440a0bc37 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 6 Jul 2020 14:48:42 +0800 Subject: Setup main branch for release build testing --- .github/workflows/release.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29fc3c6..8d490b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,18 +13,18 @@ name: release on: push: - # Enable when testing release infrastructure on a branch. -# branches: -# - release + Enable when testing release infrastructure on a branch. + branches: + - master tags: - 'v[0-9]+.[0-9]+.[0-9]+' jobs: create-release: name: create-release runs-on: ubuntu-latest -# env: -# # Set to force version number, e.g., when no tag exists. -# ARTIFACT_VERSION: TEST-0.0.1 + env: + # Set to force version number, e.g., when no tag exists. + ARTIFACT_VERSION: TEST-0.0.1 steps: - name: Create artifacts directory run: mkdir artifacts @@ -82,27 +82,32 @@ jobs: os: ubuntu-18.04 rust: nightly target: x86_64-unknown-linux-musl + feature: tui-unix - build: linux-arm os: ubuntu-18.04 rust: nightly target: arm-unknown-linux-gnueabihf + feature: tui-unix - build: macos os: macos-latest rust: nightly target: x86_64-apple-darwin -# no windows support, at least not with GUI (see https://github.com/Byron/dua-cli/issues/2) + feature: tui-unix - build: win-msvc os: windows-2019 rust: nightly target: x86_64-pc-windows-msvc + feature: tui-crossplatform - build: win-gnu os: windows-2019 rust: nightly-x86_64-gnu target: x86_64-pc-windows-gnu + feature: tui-crossplatform - build: win32-msvc os: windows-2019 rust: nightly target: i686-pc-windows-msvc + feature: tui-crossplatform steps: - name: Checkout repository @@ -120,12 +125,6 @@ jobs: run: | ci/macos-install-packages - - name: Patch Cargo.toml (Windows) - if: matrix.os == 'windows-2019' - shell: bash - run: | - cat Cargo.toml.windows-suffix >> Cargo.toml - - name: Install Rust uses: actions-rs/toolchain@v1 with: @@ -167,7 +166,7 @@ jobs: echo "release version: $RELEASE_VERSION" - name: Build release binary - run: ${{ env.CARGO }} build --verbose --release ${{ env.TARGET_FLAGS }} + run: ${{ env.CARGO }} build --verbose --release ${{ env.TARGET_FLAGS }} --no-default-features --features ${{ matrix.feature }} - name: Strip release binary (linux and macos) if: matrix.build == 'linux' || matrix.build == 'macos' -- cgit v1.2.3