Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Ntfy_archive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Ntfy_archive
Commits
fa8a7ce4
Commit
fa8a7ce4
authored
3 years ago
by
Philipp Heckel
Browse files
Options
Downloads
Patches
Plain Diff
ARM builds, hopefully working
parent
6a0dd083
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.goreleaser.yml
+26
-5
26 additions, 5 deletions
.goreleaser.yml
Makefile
+14
-8
14 additions, 8 deletions
Makefile
README.md
+5
-6
5 additions, 6 deletions
README.md
with
45 additions
and
19 deletions
.goreleaser.yml
+
26
−
5
View file @
fa8a7ce4
...
@@ -2,13 +2,32 @@ before:
...
@@ -2,13 +2,32 @@ before:
hooks
:
hooks
:
-
go mod download
-
go mod download
builds
:
builds
:
-
binary
:
ntfy
-
id
:
ntfy
binary
:
ntfy
env
:
-
CGO_ENABLED=1
# required for go-sqlite3
goos
:
[
linux
]
goarch
:
[
amd64
]
-
id
:
ntfy_arm67
binary
:
ntfy
env
:
-
CGO_ENABLED=1
# required for go-sqlite3
-
CC=arm-linux-gnueabi-gcc
# apt install gcc-arm-linux-gnueabi
goos
:
[
linux
]
goarch
:
[
arm
]
goarm
:
-
6
-
7
-
id
:
ntfy_arm64
binary
:
ntfy
env
:
env
:
-
CGO_ENABLED=1
# required for go-sqlite3
-
CGO_ENABLED=1
# required for go-sqlite3
goos
:
-
CC=aarch64-linux-gnu-gcc
# apt install gcc-aarch64-linux-gnu
-
linux
goos
:
[
linux
]
goarch
:
goarch
:
[
arm64
]
-
amd64
nfpms
:
nfpms
:
-
-
package_name
:
ntfy
package_name
:
ntfy
...
@@ -54,6 +73,8 @@ dockers:
...
@@ -54,6 +73,8 @@ dockers:
-
dockerfile
:
Dockerfile
-
dockerfile
:
Dockerfile
ids
:
ids
:
-
ntfy
-
ntfy
goos
:
linux
goarch
:
amd64
image_templates
:
image_templates
:
-
"
binwiederhier/ntfy:latest"
-
"
binwiederhier/ntfy:latest"
-
"
binwiederhier/ntfy:{{
.Tag
}}"
-
"
binwiederhier/ntfy:{{
.Tag
}}"
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
14
−
8
View file @
fa8a7ce4
...
@@ -61,6 +61,7 @@ coverage-html:
...
@@ -61,6 +61,7 @@ coverage-html:
coverage-upload
:
coverage-upload
:
cd
build/coverage
&&
(
curl
-s
https://codecov.io/bash | bash
)
cd
build/coverage
&&
(
curl
-s
https://codecov.io/bash | bash
)
# Lint/formatting targets
# Lint/formatting targets
fmt
:
fmt
:
...
@@ -84,13 +85,18 @@ staticcheck: .PHONY
...
@@ -84,13 +85,18 @@ staticcheck: .PHONY
PATH
=
"
$(
PWD
)
/build/staticcheck:
$(
PATH
)
"
staticcheck ./...
PATH
=
"
$(
PWD
)
/build/staticcheck:
$(
PATH
)
"
staticcheck ./...
rm
-rf
build/staticcheck
rm
-rf
build/staticcheck
# Building targets
# Building targets
build
:
.PHONY
build-deps
:
.PHONY
goreleaser build
--rm-dist
which arm-linux-gnueabi-gcc
||
{
echo
"ERROR: ARMv6/v7 cross compiler not installed. On Ubuntu, run: apt install gcc-arm-linux-gnueabi"
;
exit
1
;
}
which aarch64-linux-gnu-gcc
||
{
echo
"ERROR: ARM64 cross compiler not installed. On Ubuntu, run: apt install gcc-aarch64-linux-gnu"
;
exit
1
;
}
build
:
build-deps
goreleaser build
--rm-dist
--debug
build-snapshot
:
build-snapshot
:
build-deps
goreleaser build
--snapshot
--rm-dist
goreleaser build
--snapshot
--rm-dist
--debug
build-simple
:
clean
build-simple
:
clean
mkdir
-p
dist/ntfy_linux_amd64
mkdir
-p
dist/ntfy_linux_amd64
...
@@ -106,11 +112,11 @@ clean: .PHONY
...
@@ -106,11 +112,11 @@ clean: .PHONY
# Releasing targets
# Releasing targets
release
:
release
:
build-deps
goreleaser release
--rm-dist
goreleaser release
--rm-dist
--debug
release-snapshot
:
release-snapshot
:
build-deps
goreleaser release
--snapshot
--skip-publish
--rm-dist
goreleaser release
--snapshot
--skip-publish
--rm-dist
--debug
# Installing targets
# Installing targets
...
...
This diff is collapsed.
Click to expand it.
README.md
+
5
−
6
View file @
fa8a7ce4
...
@@ -136,14 +136,13 @@ sudo apt install ntfy
...
@@ -136,14 +136,13 @@ sudo apt install ntfy
**Debian/Ubuntu**
(
*manual install*
)
**:**
**Debian/Ubuntu**
(
*manual install*
)
**:**
```
bash
```
bash
sudo
apt
install
tmux
wget https://github.com/binwiederhier/ntfy/releases/download/v1.4.4/ntfy_1.4.4_amd64.deb
wget https://github.com/binwiederhier/ntfy/releases/download/v1.4.3/ntfy_1.3.0_amd64.deb
dpkg
-i
ntfy_1.4.4_amd64.deb
dpkg
-i
ntfy_1.4.3_amd64.deb
```
```
**Fedora/RHEL/CentOS:**
**Fedora/RHEL/CentOS:**
```
bash
```
bash
rpm
-ivh
https://github.com/binwiederhier/ntfy/releases/download/v1.4.
3
/ntfy_1.
3.0
_amd64.rpm
rpm
-ivh
https://github.com/binwiederhier/ntfy/releases/download/v1.4.
4
/ntfy_1.
4.4
_amd64.rpm
```
```
**Docker:**
**Docker:**
...
@@ -158,8 +157,8 @@ go get -u heckel.io/ntfy
...
@@ -158,8 +157,8 @@ go get -u heckel.io/ntfy
**Manual install**
(
*any x86_64-based Linux*
)
**:**
**Manual install**
(
*any x86_64-based Linux*
)
**:**
```
bash
```
bash
wget https://github.com/binwiederhier/ntfy/releases/download/v1.4.
3
/ntfy_1.
3.0
_linux_x86_64.tar.gz
wget https://github.com/binwiederhier/ntfy/releases/download/v1.4.
4
/ntfy_1.
4.4
_linux_x86_64.tar.gz
sudo tar
-C
/usr/bin
-zxf
ntfy_1.4.
3
_linux_x86_64.tar.gz ntfy
sudo tar
-C
/usr/bin
-zxf
ntfy_1.4.
4
_linux_x86_64.tar.gz ntfy
./ntfy
./ntfy
```
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment