Skip to content

Commit

Permalink
Merge pull request #18 from teknomunk/master
Browse files Browse the repository at this point in the history
Fix install-systemd, update github workflow to use go-1.16
  • Loading branch information
nasdf authored Feb 24, 2021
2 parents 7d82561 + 4a3b9b7 commit f79355f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
stable: 'false'
go-version: 1.16.0-rc1
stable: 'true'
go-version: '1.16'
- name: Generate test coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ install:

install-systemd: install
mkdir -p $(HOME)/.config/systemd/user/
cp multiverse.service $(HOME)/.config/systemd/user
cp misc/multiverse-user.service $(HOME)/.config/systemd/user

test:
$(GOCC) test ./... -cover
Expand Down
11 changes: 11 additions & 0 deletions misc/multiverse-user.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Multiverse daemon
After=network.target

[Service]
ExecStart=/bin/bash -c "exec $HOME/go/bin/multi daemon"
Restart=always
RestartSec=5s

[Install]
WantedBy=default.target

0 comments on commit f79355f

Please sign in to comment.