Skip to content

Commit 9f756e1

Browse files
committed
first
Signed-off-by: Carlos Alexandro Becker <[email protected]>
0 parents  commit 9f756e1

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target
2+
3+
dist/

.goreleaser.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
4+
# The lines below are called `modelines`. See `:help modeline`
5+
# Feel free to remove those if you don't want/need to use them.
6+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8+
9+
version: 2
10+
11+
before:
12+
hooks:
13+
# if you don't do these things before calling goreleaser, it might be a
14+
# good idea to do them here:
15+
- rustup default stable
16+
- cargo install --locked cargo-zigbuild
17+
- cargo fetch --locked
18+
19+
builds:
20+
- builder: rust
21+
targets:
22+
- x86_64-unknown-linux-gnu
23+
- x86_64-apple-darwin
24+
- x86_64-pc-windows-gnu
25+
- aarch64-unknown-linux-gnu
26+
- aarch64-apple-darwin
27+
28+
archives:
29+
- format: tar.gz
30+
# this name template makes the OS and Arch compatible with the results of `uname`.
31+
name_template: >-
32+
{{ .ProjectName }}_
33+
{{- title .Os }}_
34+
{{- if eq .Arch "amd64" }}x86_64
35+
{{- else if eq .Arch "386" }}i386
36+
{{- else }}{{ .Arch }}{{ end }}
37+
# use zip for windows archives
38+
format_overrides:
39+
- goos: windows
40+
format: zip
41+
42+
changelog:
43+
sort: asc
44+
filters:
45+
exclude:
46+
- "^docs:"
47+
- "^test:"
48+
49+
release:
50+
footer: >-
51+
52+
---
53+
54+
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).

Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "example-rust"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]

src/main.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

0 commit comments

Comments
 (0)