Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
test:
name: Test (Go ${{ matrix.go-version }}, ${{ matrix.arch }})
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- go-version: stable
runs-on: ubuntu-24.04
arch: amd64
- go-version: stable
runs-on: ubuntu-24.04-arm
arch: arm64
- go-version: oldstable
runs-on: ubuntu-24.04
arch: amd64
- go-version: oldstable
runs-on: ubuntu-24.04-arm
arch: arm64
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
- run: ./format_check.sh
- run: go test ./...
- run: go build ./...

build-arm32:
name: Build (Go ${{ matrix.go-version }}, arm)
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
go-version:
- stable
- oldstable
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
- run: GOOS=linux GOARCH=arm go build ./...
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# BME280 driver

[![GoDoc](https://godoc.org/github.com/maciej/bme280?status.svg)](https://godoc.org/github.com/maciej/bme280)
[![Build Status](https://travis-ci.org/maciej/bme280.svg?branch=master)](https://travis-ci.org/maciej/bme280)
[![CI](https://github.com/maciej/bme280/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/maciej/bme280/actions/workflows/ci.yml)

Go driver for the Bosch BME280 sensor.

Expand Down
2 changes: 1 addition & 1 deletion bme280.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
ModeNormal Mode = 0x03
)

//noinspection GoUnusedConst,GoSnakeCaseUsage
// noinspection GoUnusedConst,GoSnakeCaseUsage
const (
I2CAddr = 0x77

Expand Down