summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksii Filonenko <brightone@protonmail.com>2020-07-23 11:48:56 +0300
committerOleksii Filonenko <brightone@protonmail.com>2020-07-23 11:52:17 +0300
commitd1d1aeb3d5aaa75f262467c5e683e76ce7a844ab (patch)
treeb096815f951383b7d3122dd5fba7c127db718387
parent7322949561fdbdc36a811b1368222fb5a2bf050a (diff)
add windows to github actions
-rw-r--r--.github/workflows/main.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index c8ccbae..e2995b8 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -82,3 +82,38 @@ jobs:
asset_name: dijo-x86_64-apple
tag: ${{ github.ref }}
overwrite: true
+
+ build-windows:
+ runs-on: windows-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v1
+ - name: Cache Rust dependencies
+ uses: actions/cache@v1.0.1
+ with:
+ path: target
+ key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
+ restore-keys: |
+ ${{ runner.OS }}-build-
+ - name: Install latest rust toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: beta
+ target: x86_64-pc-windows-msvc
+ default: true
+ override: true
+
+ - name: Build for windows
+ run: |
+ cargo build --all --release
+ strip target/release/dijo
+
+ - name: Upload binaries to release
+ uses: svenstaro/upload-release-action@v1-release
+ with:
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
+ file: target/release/dijo
+ asset_name: dijo-x86_64-windows
+ tag: ${{ github.ref }}
+ overwrite: true