diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-08-29 03:18:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-29 03:18:28 +0000 |
commit | 4d3d79bf974246688a58938ddbf59f0f9fb3af16 (patch) | |
tree | c97ef82f9be62b5e6848371028ef22789ce9e73f | |
parent | Run CI on push only (diff) | |
parent | Use custom freebsd image until cross is fixed (diff) | |
download | miniserve-4d3d79bf974246688a58938ddbf59f0f9fb3af16.tar.gz miniserve-4d3d79bf974246688a58938ddbf59f0f9fb3af16.zip |
Merge pull request #584 from svenstaro/always-build-all-binaries
Always build all binaries for all targets
-rw-r--r-- | .github/workflows/build-release-binaries.yml (renamed from .github/workflows/publish.yml) | 18 | ||||
-rw-r--r-- | Cross.toml | 4 |
2 files changed, 14 insertions, 8 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/build-release-binaries.yml index 064a0a0..5085246 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/build-release-binaries.yml @@ -1,12 +1,9 @@ -name: Publish +name: Build release binaries (and publish them if this is a tag) -on: - push: - tags: - - 'v*' +on: push jobs: - publish: + binaries: name: ${{ matrix.os }} for ${{ matrix.target }} runs-on: ${{ matrix.os }} strategy: @@ -147,11 +144,16 @@ jobs: strip: ${{ matrix.strip }} if: ${{ matrix.compress }} + ### + # Below this line, steps will only be ran if a tag was pushed. + ### + - name: Get tag name id: tag_name run: | echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} shell: bash + if: startsWith('refs/tags/v', github.ref) - name: Get CHANGELOG.md entry id: changelog_reader @@ -159,8 +161,9 @@ jobs: with: version: ${{ steps.tag_name.outputs.current_version }} path: ./CHANGELOG.md + if: startsWith('refs/tags/v', github.ref) - - name: Release + - name: Publish uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} @@ -168,3 +171,4 @@ jobs: tag: ${{ github.ref }} asset_name: miniserve-$tag-${{ matrix.release_name }} body: ${{ steps.changelog_reader.outputs.log_entry }} + if: startsWith('refs/tags/v', github.ref) @@ -1,3 +1,5 @@ # NOTE: Custom image specification for freebsd is required until new version of cross is released. +# Also we'll have to use a custom image until https://github.com/rust-embedded/cross/pull/582 is +# merged and released on Docker Hub. [target.x86_64-unknown-freebsd] -image = "rustembedded/cross:x86_64-unknown-freebsd" +image = "svenstaro/cross-x86_64-unknown-freebsd" |