aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksii Filonenko <[email protected]>2020-07-23 09:48:56 +0100
committerOleksii Filonenko <[email protected]>2020-07-23 09:52:17 +0100
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:
82 asset_name: dijo-x86_64-apple 82 asset_name: dijo-x86_64-apple
83 tag: ${{ github.ref }} 83 tag: ${{ github.ref }}
84 overwrite: true 84 overwrite: true
85
86 build-windows:
87 runs-on: windows-latest
88
89 steps:
90 - name: Checkout
91 uses: actions/checkout@v1
92 - name: Cache Rust dependencies
93 uses: actions/[email protected]
94 with:
95 path: target
96 key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
97 restore-keys: |
98 ${{ runner.OS }}-build-
99 - name: Install latest rust toolchain
100 uses: actions-rs/toolchain@v1
101 with:
102 toolchain: beta
103 target: x86_64-pc-windows-msvc
104 default: true
105 override: true
106
107 - name: Build for windows
108 run: |
109 cargo build --all --release
110 strip target/release/dijo
111
112 - name: Upload binaries to release
113 uses: svenstaro/upload-release-action@v1-release
114 with:
115 repo_token: ${{ secrets.GITHUB_TOKEN }}
116 file: target/release/dijo
117 asset_name: dijo-x86_64-windows
118 tag: ${{ github.ref }}
119 overwrite: true