Skip to content

Commit d89f56f

Browse files
author
Alexander Weber
committed
+ compiled programs as assets
1 parent 805d75c commit d89f56f

2 files changed

Lines changed: 36 additions & 2 deletions

File tree

docs/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,20 @@ I built this utility because all of the alternatives I have tried, including the
167167

168168
## Development
169169

170-
Releasing:
170+
**Releasing:**
171171

172172
- GitHub
173173
`neomake plan -n release:github -aversion="${VERSION}" -asigner="${SIGNER}" | neomake x`
174174
- crates.io
175175
`neomake plan -n release:cratesio -aversion="${VERSION}" -asigner="${SIGNER}" | neomake x`
176+
177+
Required tools:
178+
179+
- Rust dev tooling (`cargo`, `rustc`, `rustup`, ...)
180+
- `cross` - for cross compiling
181+
`cargo install cross --git https://github.com/cross-rs/cross`
182+
- `github cli` - for creating github releases
183+
`brew install gh`
184+
- `gpg` - for signing release assets
185+
`brew install gpg`
186+
- `tar` - for creating tarballs

neomake.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,30 @@ nodes:
6060
mkdir ./.release
6161
mkdir ./.release/temp
6262
mkdir ./.release/assets
63+
"release:asset:generate:compile":
64+
description: "Compiles the application."
65+
pre:
66+
- name: "release:init"
67+
matrix:
68+
parallel: true
69+
dimensions:
70+
- - env:
71+
vars:
72+
TARGET: x86_64-unknown-linux-gnu
73+
- env:
74+
vars:
75+
TARGET: x86_64-unknown-linux-musl
76+
- env:
77+
vars:
78+
TARGET: aarch64-unknown-linux-gnu
79+
- env:
80+
vars:
81+
TARGET: aarch64-apple-darwin
82+
tasks:
83+
- script: |
84+
rustup target add --toolchain stable ${TARGET}
85+
cross build --release --target ${TARGET}
86+
cp ./target/${TARGET}/release/neomake ./.release/assets/neomake-${TARGET}
6387
"release:asset:generate:manpages":
6488
description: "Generates manpages."
6589
pre:
@@ -149,7 +173,6 @@ nodes:
149173
fi
150174
- script: |
151175
gh release create {{ version }} --latest --target=master --title="Release {{ version }}" ./.release/assets/*
152-
rm -rf .release
153176
"release:cratesio":
154177
description: "Releases to crates.io."
155178
pre:

0 commit comments

Comments
 (0)