Skip to content

Commit

Permalink
Merge pull request #32 from rage/ci
Browse files Browse the repository at this point in the history
Add msi creation to CI
  • Loading branch information
Heliozoa authored Sep 9, 2024
2 parents a655304 + 4a2a588 commit f95d233
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install fmt, clippy and nightly for the fmt
run: |
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@ jobs:
shell: bash
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Create msi installer
run: |
dotnet tool install --global wix
cargo install cargo-wix
cargo wix --output installer.msi
- name: Upload msi artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./installer.msi
asset_name: tmc-cli-rust-${{ steps.get_version.outputs.VERSION }}.msi
asset_content_type: application/octet-stream

- name: Deploy
run: |
$env:python_version=$(python -c 'import sys; print(\".\".join(map(str, sys.version_info[:3])))')
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: tmc-cli-rust
title: TestMyCode CLI
base: core20
version: 1.1.2
version: 1.1.3
issues: https://github.com/rage/tmc-cli-rust/issues
source-code: https://github.com/rage/tmc-cli-rust.git
website: https://tmc.mooc.fi/
Expand Down

0 comments on commit f95d233

Please sign in to comment.