Skip to content

Commit

Permalink
Revert prixt#25
Browse files Browse the repository at this point in the history
[ci-build]
  • Loading branch information
Erquint committed Dec 17, 2022
1 parent 256c736 commit a1a48cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 35 deletions.
39 changes: 5 additions & 34 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
if: "!contains(github.event.head_commit.message, 'ci-skip') && contains(github.event.head_commit.message, 'ci-build')"
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-10.14]
os: [ubuntu-latest, windows-latest, macos-latest]
name: Build
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -29,46 +29,17 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose
args: --release --verbose

- name: Upload Non-Windows Built Binary
- name: Upload Built Binary
if: runner.os != 'Windows'
uses: actions/upload-artifact@v1
with:
name: soundsense-rs-${{runner.os}}
path: target/release/soundsense-rs

- name: Upload Windows Built Binary
- name: Upload Built Binary
if: runner.os == 'Windows'
uses: actions/upload-artifact@v1
with:
name: soundsense-rs-${{runner.os}}
path: target/release/soundsense-rs.exe


- name: Version
if: startsWith(github.ref, 'refs/tags/v')
shell: bash
id: version_id
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Package release not Windows
if: startsWith(github.ref, 'refs/tags/v') && runner.os != 'Windows'
run: tar cjf soundsense-rs-${{ steps.version_id.outputs.VERSION }}-${{runner.os}}.tbz -C target/release/ soundsense-rs
- name: Package release win
if: startsWith(github.ref, 'refs/tags/v') && runner.os == 'Windows'
shell: bash
run: 7z a soundsense-rs-${{ steps.version_id.outputs.VERSION }}-Windows.zip ./target/release/soundsense-rs.exe

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
body: |
Files generated by github action
files: |
soundsense-rs-*-*.tbz
soundsense-rs-*-Windows.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

path: target/release/soundsense-rs.exe
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "soundsense-rs"
version = "1.5.2"
version = "1.5.4"
build = "build.rs"
authors = ["prixt <[email protected]>"]
edition = "2018"
Expand Down

0 comments on commit a1a48cd

Please sign in to comment.