You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2023/03/07 21:25:05 UTC
[mynewt-newtmgr] branch master updated: ci: Add initial Github Actions integration
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git
The following commit(s) were added to refs/heads/master by this push:
new 34e90dc ci: Add initial Github Actions integration
34e90dc is described below
commit 34e90dca2f99a275fc77b207be7d799990d9b2ae
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Tue Mar 7 22:22:41 2023 +0100
ci: Add initial Github Actions integration
This builds newtmgr and does very basic sanity test.
---
.github/workflows/build.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..c691c00
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,49 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: Build and test
+
+on: [push, pull_request]
+
+jobs:
+ test_commands:
+ name: other
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, windows-latest, macos-latest]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-go@v3
+ with:
+ go-version: 'stable'
+ - name: Build newtmgr
+ working-directory: newtmgr
+ shell: bash
+ run: |
+ go version
+ go build
+ echo ${GITHUB_WORKSPACE}/newtmgr >> $GITHUB_PATH
+ - name: Test commands
+ shell: bash
+ run: |
+ newtmgr
+ newtmgr help
+ newtmgr version