@@ -16,12 +16,17 @@ jobs:
16
16
env :
17
17
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18
18
steps :
19
- - uses : actions/checkout@v3
19
+ - name : Checkout repository
20
+ uses : actions/checkout@v3
21
+
20
22
- name : Install Rust
21
23
run : rustup install nightly-2023-08-18 --no-self-update && rustup default nightly-2023-08-18
24
+
22
25
- name : Install cargo-dist
23
26
run : curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.7/cargo-dist-installer.sh | sh
24
- - id : create-release
27
+
28
+ - name : Create Release
29
+ id : create-release
25
30
run : |
26
31
cargo dist plan --tag=${{ github.ref_name }} --output-format=json > dist-manifest.json
27
32
echo "dist plan ran successfully"
@@ -51,35 +56,45 @@ jobs:
51
56
matrix :
52
57
# For these target platforms
53
58
include :
54
- - os : ubuntu-20.04
55
- dist-args : --artifacts=local --target=x86_64-unknown-linux-gnu
56
- install-dist : curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.7/cargo-dist-installer.sh | sh
57
- - os : windows-2019
58
- dist-args : --artifacts=local --target=x86_64-pc-windows-msvc
59
- install-dist : irm https://github.com/axodotdev/cargo-dist/releases/download/v0.0.7/cargo-dist-installer.ps1 | iex
59
+ - os : ubuntu-20.04
60
+ dist-args : --artifacts=local --target=x86_64-unknown-linux-gnu
61
+ install-dist : curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.7/cargo-dist-installer.sh | sh
62
+ - os : windows-2019
63
+ dist-args : --artifacts=local --target=x86_64-pc-windows-msvc
64
+ install-dist : irm https://github.com/axodotdev/cargo-dist/releases/download/v0.0.7/cargo-dist-installer.ps1 | iex
60
65
61
66
runs-on : ${{ matrix.os }}
62
67
env :
63
68
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
64
69
steps :
65
- - uses : actions/checkout@v3
70
+ - name : Checkout repository
71
+ uses : actions/checkout@v3
72
+
66
73
- name : Install Rust
67
74
run : rustup install nightly-2023-08-18 --no-self-update && rustup default nightly-2023-08-18
68
- - name : Install x86_64-pc-windows-gnu target
75
+
76
+ - name : Add x86_64-pc-windows-gnu target
69
77
if : runner.os == 'Linux' || runner.os == 'macOS'
70
78
run : rustup target add x86_64-pc-windows-gnu
71
- - name : Cache Dependencies
79
+
80
+ - name : Cache dependencies
72
81
uses : Swatinem/rust-cache@v2
82
+
73
83
- name : Install cargo-dist
74
84
run : ${{ matrix.install-dist }}
85
+
75
86
- name : Install packages (Linux)
76
87
if : runner.os == 'Linux'
77
- run : sudo apt-get update && sudo apt-get install libgtk-3-dev gcc-mingw-w64
88
+ run : |
89
+ sudo apt update
90
+ sudo apt install gcc-mingw-w64 libgtk-3-dev
91
+
78
92
- name : Install packages (MacOS)
79
93
if : runner.os == 'macOS'
80
94
run : |
81
95
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
82
96
brew install mingw-w64
97
+
83
98
- name : Run cargo-dist
84
99
# This logic is a bit janky because it's trying to be a polyglot between
85
100
# powershell and bash since this will run on windows, macos, and linux!
0 commit comments