-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
56 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Go | ||
on: [push] | ||
jobs: | ||
build: | ||
name: Build by go ${{ matrix.go }} | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
matrix: | ||
go: ["1.12", "1.13"] | ||
steps: | ||
- name: Set up Go 1.12 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
id: go | ||
|
||
- name: Install lirc | ||
run: | | ||
sudo apt -qq update && sudo apt -qq install \ | ||
autoconf libtool libxml2-dev xsltproc python3 python3-setuptools | ||
cd /tmp | ||
git clone git://git.code.sf.net/p/lirc/git lirc | ||
cd lirc | ||
git checkout lirc-0.10.1 | ||
./autogen.sh | ||
./configure | ||
make | ||
sudo make install | ||
sudo ldconfig | ||
sudo mkdir -p /var/run/lirc | ||
lircd -v | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
|
||
- name: Launch lircd | ||
run: | | ||
export LIRC_RUN_PATH=/home/runner/work/lirc-web-api/lirc-web-api/lirc/test | ||
sudo cp $LIRC_RUN_PATH/lircd.conf \ | ||
/usr/local/etc/lirc/lircd.conf.d/lighting.conf | ||
sudo lircd --logfile=$LIRC_RUN_PATH/lirc.log \ | ||
--allow-simulate \ | ||
--driver simsend | ||
- name: Get dependencies | ||
run: | | ||
go get -v -t -d ./... | ||
- name: Build | ||
run: | | ||
go build -v . | ||
- name: Test | ||
run: | | ||
go test ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.* | ||
!.gitignore | ||
!.github | ||
|
||
# golang | ||
vendor | ||
|
This file was deleted.
Oops, something went wrong.