Skip to content

Commit

Permalink
Release Windows version
Browse files Browse the repository at this point in the history
  • Loading branch information
jkfran committed May 13, 2023
1 parent 760d115 commit 8d19bba
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- main
- windows-releases

jobs:
check_release:
Expand Down Expand Up @@ -64,6 +65,7 @@ jobs:
- s390x-unknown-linux-gnu
- aarch64-apple-darwin
- x86_64-apple-darwin
- x86_64-pc-windows-gnu
runs-on: ${{ (matrix.target == 'aarch64-apple-darwin' || matrix.target == 'x86_64-apple-darwin') && 'macos-latest' || 'ubuntu-latest' }}
steps:
- name: Checkout repository
Expand All @@ -76,6 +78,10 @@ jobs:
target: ${{ matrix.target }}
override: true

- name: Install mingw-w64
run: sudo apt install -y mingw-w64
if: matrix.target == 'x86_64-pc-windows-gnu'

- name: Build target
uses: actions-rs/cargo@v1
with:
Expand All @@ -88,7 +94,11 @@ jobs:
run: |
cd target/${{ matrix.target }}/release
short_target=$(echo "${{ matrix.target }}" | sed 's/-unknown//')
tar czvf ../../../killport-${short_target}.tar.gz killport
if [[ $short_target == *"windows"* ]]; then
tar czvf ../../../killport-${short_target}.tar.gz killport.exe
else
tar czvf ../../../killport-${short_target}.tar.gz killport
fi
cd -
- name: Extract version from Cargo.toml
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "killport"
version = "0.8.0"
version = "0.9.0"
authors = ["Francisco Jimenez Cabrera <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- Kill processes by port number
- Supports multiple port numbers
- Verbosity control
- Works on Linux and macOS
- Works on Linux, macOS and Windows

## Installation

Expand Down
6 changes: 3 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ We are committed to providing security updates for the following versions of kil

| Version | Supported |
| ------- | ------------------ |
| 0.8.x | :white_check_mark: |
| < 0.8.0 | :x: |
| 0.9.x | :white_check_mark: |
| < 0.9.0 | :x: |

Older versions of killport may still work but are not actively maintained or supported. We encourage users to upgrade to the latest version to receive security updates and feature improvements.

Expand All @@ -19,7 +19,7 @@ Please follow these steps to report a vulnerability:

1. Go to the [GitHub Security tab](https://github.com/jkfran/killport/security/advisories) in the killport repository.
2. Click on "New draft advisory."
3. Provide a descriptive title for the advisory, such as "Security Vulnerability in killport v0.8.0."
3. Provide a descriptive title for the advisory, such as "Security Vulnerability in killport v0.9.0."
4. Provide a detailed description of the vulnerability, including steps to reproduce the issue, affected components, and potential impact.
5. If you have a suggested patch or workaround, please include it in the report. However, this is not required.
6. Submit the draft advisory.
Expand Down
2 changes: 1 addition & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: killport
version: "0.8.0"
version: "0.9.0"
summary: A CLI tool to kill processes using specified ports
description: |
Killport is a command-line utility to find and kill processes listening on specified ports.
Expand Down

0 comments on commit 8d19bba

Please sign in to comment.