Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main
name: Linux

on: push

Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Windows

on: push

jobs:
build:
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Build & Test
run: cargo test

- name: Get Termcalc Version
if: startsWith(github.ref, 'refs/tags/')
run: |
cargo install cargo-get
echo "TC_VERSION=$(cargo get package.version)" | Out-File -FilePath $env:GITHUB_ENV -Append

- name: Build Windows release
if: startsWith(github.ref, 'refs/tags/')
run: |
cargo build --release
md target/dist
cp target/release/tc.exe target/dist/termcalc-${{ env.TC_VERSION }}-x86_64.exe

- name: Upload Release Executable
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
target/dist/termcalc-${{ env.TC_VERSION }}-x86_64.exe

Loading