Skip to content

Commit

Permalink
removed windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Grönqvist committed Jan 27, 2021
1 parent f3e920e commit 51267ea
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -56,16 +56,12 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, macOS-latest]
include:
- os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-musl
bin: bypass_forbidden
- os: windows-latest
rust: stable
target: x86_64-pc-windows-msvc
bin: bypass_forbidden.exe
- os: macOS-latest
rust: stable
target: x86_64-apple-darwin
Expand Down Expand Up @@ -96,20 +92,14 @@ jobs:
release_name="$name-$tag-${{ matrix.target }}"
release_tar="${release_name}.tar.gz"
mkdir "$release_name"
if [ "${{ matrix.target }}" != "x86_64-pc-windows-msvc" ]; then
strip "target/${{ matrix.target }}/release/${{ matrix.bin }}"
fi
strip "target/${{ matrix.target }}/release/${{ matrix.bin }}"
cp "target/${{ matrix.target }}/release/${{ matrix.bin }}" "$release_name/"
cp README.md "$release_name/"
tar czvf "$release_tar" "$release_name"
rm -r "$release_name"
# Windows environments in github actions don't have the gnu coreutils installed,
# which includes the shasum exe, so we just use powershell instead
if [ "${{ matrix.os }}" == "windows-latest" ]; then
echo "(Get-FileHash \"${release_tar}\" -Algorithm SHA256).Hash | Out-File -Encoding ASCII -NoNewline \"${release_tar}.sha256\"" | pwsh -c -
else
echo -n "$(shasum -ba 256 "${release_tar}" | cut -d " " -f 1)" > "${release_tar}.sha256"
fi
echo -n "$(shasum -ba 256 "${release_tar}" | cut -d " " -f 1)" > "${release_tar}.sha256"
- name: Publish
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 51267ea

Please sign in to comment.