Skip to content

Commit

Permalink
Lets see if zip is installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
H-M-H committed May 1, 2020
1 parent 27f0d0d commit 6d41ae3
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ jobs:
include:
- os: ubuntu-latest
build-cmd: npm install -g typescript && cargo install cargo-deb && cargo deb
package-file: target/debian/Weylus*.deb
exec-file: target/release/Weylus
package-files: |
target/release/linux.zip
target/debian/Weylus*.deb
pkg-cmd: cd taget/release/ && zip linux.zip Weylus
- os: macOS-latest
build-cmd: npm install -g typescript && cargo install cargo-bundle && cargo bundle --release
package-file: target/release/bundle/osx
exec-file: target/release/Weylus
package-files: target/release/bundle/osx/macOS.zip
pkg-cmd: cd target/release/bundle/osx/ && zip -r macOS.zip Weylus.app
- os: windows-latest
build-cmd: npm install -g typescript && npm run build && cargo build --release --verbose
package-file: target/release/Weylus.exe
exec-file: target/release/Weylus.exe
package-files: target/release/Windows.zip
pkg-cmd: cd target/release/ && zip Windows.zip Weylus.exe

steps:
- name: Download deps
Expand All @@ -41,26 +43,14 @@ jobs:
- uses: actions/setup-node@v1
- name: Build
run: ${{ matrix.build-cmd }}

- name: Upload execs
uses: actions/upload-artifact@v2
with:
name: weylus-exec-${{ matrix.os }}
path: ${{ matrix.exec-file }}

- name: Upload pkgs
uses: actions/upload-artifact@v2
with:
name: weylus-${{ matrix.os }}
path: ${{ matrix.package-file }}

- name: Package
run: ${{ matrix.pkg-cmd }}
- name: Publish
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{matrix.package-file}}
${{matrix.exec-file}}
${{ matrix.package-files }}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6d41ae3

Please sign in to comment.