diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 8dd190f..0000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Go - -on: [push, pull_request] - -jobs: - - build: - strategy: - matrix: - os: [ ubuntu-latest, windows-latest, macos-latest ] - goversion: [ 1.18 ] - - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.goversion }} - - - name: Build - run: go build -v ./... diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..dd1fa2b --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,18 @@ +name: MacOS build + +on: [push, pull_request] + +jobs: + + build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.18 + + - name: Build + run: go build -v ./... \ No newline at end of file diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..878b0b6 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,18 @@ +name: Ubuntu build + +on: [push, pull_request] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.18 + + - name: Build + run: go build -v ./... diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..8c79a62 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,18 @@ +name: Windows build + +on: [push, pull_request] + +jobs: + + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.18 + + - name: Build + run: go build -v ./... diff --git a/README.md b/README.md index b5c15c2..c8f5a8c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +![build](https://img.shields.io/github/workflow/status/fhmq/hmq/Ubuntu%20build?label=Ubuntu&style=for-the-badge) +![build](https://img.shields.io/github/workflow/status/fhmq/hmq/MacOS%20build?label=MacOS&style=for-the-badge) +![build](https://img.shields.io/github/workflow/status/fhmq/hmq/Windows%20build?label=Windows&style=for-the-badge) + Free and High Performance MQTT Broker ============ diff --git a/broker/sesson.go b/broker/session.go similarity index 100% rename from broker/sesson.go rename to broker/session.go