Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Borgerr authored Oct 11, 2024
1 parent 4afcc82 commit 7a97d6e
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:

jobs:
build_and_test:
name: crumb - latest
name: test crumb - latest
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -27,3 +27,40 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose



build_release:
name: release crumb - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- name: build release
run: cargo build --release
; zip --junk-paths crumb-$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[0].version').$(git rev-parse --short HEAD).zip target/release/crumb
- name: create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: upload release
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./crumb-$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[0].version').$(git rev-parse --short HEAD).zip
asset_name: crumb-$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[0].version').$(git rev-parse --short HEAD).zip
asset_content_type: application/zip

0 comments on commit 7a97d6e

Please sign in to comment.