diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yml | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 228f5ea..7713cc4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,17 +14,17 @@ name: release on: push: # Enable when testing release infrastructure on a branch. -# branches: -# - release + branches: + - release 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.7 + 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 @@ -77,7 +77,8 @@ jobs: strategy: matrix: # build: [linux, linux-arm, macos, win-msvc, win-gnu, win32-msvc] - build: [linux, linux-arm, macos] +# build: [linux, linux-arm, macos] + build: [linux, win-msvc, win-gnu] include: - build: linux os: ubuntu-18.04 @@ -92,14 +93,14 @@ jobs: rust: nightly target: x86_64-apple-darwin # no windows support, at least not with GUI (see https://github.com/Byron/dua-cli/issues/2) -# - build: win-msvc -# os: windows-2019 -# rust: nightly -# target: x86_64-pc-windows-msvc -# - build: win-gnu -# os: windows-2019 -# rust: nightly-x86_64-gnu -# target: x86_64-pc-windows-gnu + - build: win-msvc + os: windows-2019 + rust: nightly + target: x86_64-pc-windows-msvc + - build: win-gnu + os: windows-2019 + rust: nightly-x86_64-gnu + target: x86_64-pc-windows-gnu # - build: win32-msvc # os: windows-2019 # rust: nightly @@ -121,6 +122,11 @@ jobs: run: | ci/macos-install-packages + - name: Patch Cargo.toml (Windows) + if: matrix.os == 'macos-latest' + run: | + cat Cargo.toml.windows-suffix >> Cargo.toml + - name: Install Rust uses: actions-rs/toolchain@v1 with: |