Skip to content

Commit

Permalink
Dont build failing NetBSD, always do the release
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsagata committed Jun 21, 2024
1 parent 62833f7 commit a320849
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ jobs:
bin: places-cli
name: places-cli-Linux-riscv64gc-gnu.tar.gz

- os_name: NetBSD-x86_64
os: ubuntu-20.04
target: x86_64-unknown-netbsd
bin: places-cli
name: places-cli-NetBSD-x86_64.tar.gz
skip_tests: true

- os_name: Windows-aarch64
os: windows-latest
target: aarch64-pc-windows-msvc
Expand Down Expand Up @@ -113,23 +106,11 @@ jobs:
tar czvf ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}
fi
cd -
if: |
matrix.toolchain == 'stable' &&
( startsWith( github.ref, 'refs/tags/v' ) ||
github.ref == 'refs/tags/test-release' )
- name: Generate SHA-256
run: shasum -a 256 ${{ matrix.platform.name }}
if: |
matrix.toolchain == 'stable' &&
matrix.platform.os == 'macOS-latest' &&
( startsWith( github.ref, 'refs/tags/v' ) ||
github.ref == 'refs/tags/test-release' )
- name: Publish GitHub release
uses: softprops/action-gh-release@v2
with:
draft: true
files: "places-cli-*"
body_path: CHANGELOG.md
if: matrix.toolchain == 'stable' && startsWith( github.ref, 'refs/tags/v' )

4 changes: 2 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ _shellcheck:
tag-version: check
grep -Fq '{{ version }}' CHANGELOG.md # The CHANGELOG.md should contains updated changes
git diff --no-ext-diff --quiet --exit-code # All files should be committed
git tag -a {{ version }} -m "Release {{ version }}"
git push origin {{ version }}
git tag -a v{{ version }} -m "Release v{{ version }}"
git push origin v{{ version }}

# crate tag push it to origin and then publish to crates.io (TODO)
crates: tag-version
Expand Down

0 comments on commit a320849

Please sign in to comment.