summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-07-06 14:48:42 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-07-06 14:48:51 +0800
commit50eb08b1b23714ab43e9457b92ec799440a0bc37 (patch)
treea99a8d16590a26f6ed88ae9e4ae703442430fd42 /.github
parentd57cdca7e57c40e51fdaec760e92b111dc69ad0f (diff)
Setup main branch for release build testing
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml27
1 files changed, 13 insertions, 14 deletions
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'