-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (38 loc) · 1.03 KB
/
mkdist.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Make Distribution
on:
push:
tags:
- "v*"
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os:
- macos-latest
- ubuntu-20.04
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- if: ${{ matrix.os == 'macos-latest' }}
run: |
rustup target add aarch64-apple-darwin x86_64-apple-darwin
dist/mkdist-macos ${{ github.ref_name }}
- if: ${{ matrix.os == 'ubuntu-20.04' }}
run: |
sudo apt-get update -y
sudo apt-get install -y libclang-dev libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev
dist/mkdist-linux ${{ github.ref_name }}
- if: ${{ matrix.os == 'windows-latest' }}
run: |
dist/mkdist-windows.ps1 ${{ github.ref_name }}
- uses: actions/upload-artifact@v3
with:
name: dist-${{ matrix.os }}
path: |
dist/*.dmg
dist/*.tar.bz2
dist/*.zip