Skip to content

Commit

Permalink
update CI status in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Jarek authored and hcorg committed Mar 22, 2022
1 parent 403f13f commit d90c678
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 14 deletions.
43 changes: 32 additions & 11 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build plugin
name: Build asn1scc.IDE

on: [push]

Expand All @@ -21,20 +21,33 @@ jobs:
matrix:
config:
- {
name: "Windows Latest MSVC", artifact: "Windows-x64",
name: "Windows 2019 MSVC",
artifact: "Windows-x64",
os: windows-2019,
cc: "cl", cxx: "cl",
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
tests: "OFF"
}
- {
name: "Ubuntu Latest GCC", artifact: "Linux-x64",
name: "Ubuntu Latest GCC",
artifact: "Linux-x64",
os: ubuntu-latest,
cc: "gcc", cxx: "g++"
cc: "gcc", cxx: "g++",
tests: "OFF"
}
- {
name: "macOS Latest Clang", artifact: "macOS-x64",
name: "macOS Latest Clang",
artifact: "macOS-x64",
os: macos-latest,
cc: "clang", cxx: "clang++"
cc: "clang", cxx: "clang++",
tests: "OFF"
}
- {
name: "Ubuntu Latest GCC - Tests",
artifact: "Linux-x64-Tests",
os: ubuntu-latest,
cc: "gcc", cxx: "g++",
tests: "ON"
}

steps:
Expand Down Expand Up @@ -259,7 +272,7 @@ jobs:
--qt-path "${{ steps.qt.outputs.qt_dir }}"
--qtc-path "${{ steps.qt_creator.outputs.qtc_dir }}"
--output-path "$ENV{GITHUB_WORKSPACE}"
--add-config=-DWITH_TESTS=ON
--add-config=-DWITH_TESTS=${{ matrix.config.tests }}
--build-type=Release
RESULT_VARIABLE result
)
Expand All @@ -272,9 +285,12 @@ jobs:
endif()
- name: Run tests
if: ${{ runner.os == 'Linux' }}
if: ${{ matrix.config.tests == 'ON' }}
shell: cmake -P {0}
run: |
#Tests run only for Linux
#If statements are for future purpose
set(ENV{QT_QPA_PLATFORM} "offscreen")
if ("${{ runner.os }}" STREQUAL "Linux")
Expand Down Expand Up @@ -302,6 +318,7 @@ jobs:
endif()
- name: Build package
if: ${{ matrix.config.tests == 'OFF' }}
shell: cmake -P {0}
run: |
set(package_content "package")
Expand Down Expand Up @@ -370,6 +387,7 @@ jobs:
${package_filelist})
- uses: actions/upload-artifact@v2
if: ${{ matrix.config.tests == 'OFF' }}
id: upload_artifact
with:
path: ./${{ env.PLUGIN_NAME }}-${{ env.QT_CREATOR_VERSION }}-${{ matrix.config.artifact }}.7z
Expand Down Expand Up @@ -411,15 +429,18 @@ jobs:
matrix:
config:
- {
name: "Windows Latest x64", artifact: "Windows-x64.7z",
name: "Windows 2019 x64",
artifact: "Windows-x64.7z",
os: ubuntu-latest
}
- {
name: "Linux Latest x64", artifact: "Linux-x64.7z",
name: "Linux Latest x64",
artifact: "Linux-x64.7z",
os: ubuntu-latest
}
- {
name: "macOS Latest x64", artifact: "macOS-x64.7z",
name: "macOS Latest x64",
artifact: "macOS-x64.7z",
os: macos-latest
}

Expand Down
2 changes: 1 addition & 1 deletion Asn1Acn.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
\"Url\" : \"https://n7space.com\",
\"Category\" : \"Other Languages\",
$$dependencyList,

\"Mimetypes\" : \"
<?xml version=\'1.0\'?>
<mime-info xmlns=\'http://www.freedesktop.org/standards/shared-mime-info\'>
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# asn1scc.IDE
Qt Creator plugin for asn1scc - ASN.1/ACN compiler for embedded systems

[![Build Status](https://travis-ci.org/n7space/asn1scc.IDE.svg?branch=master)](https://travis-ci.org/n7space/asn1scc.IDE)
[![Build status](https://ci.appveyor.com/api/projects/status/4vtpq8py5dc53s7b/branch/master?svg=true)](https://ci.appveyor.com/project/hcorg/asn1scc-ide/branch/master)
[![Build Status](https://github.com/n7space/asn1scc.IDE/actions/workflows/build_cmake.yml/badge.svg?branch=master)](https://github.com/n7space/asn1scc.IDE/actions/workflows/build_cmake.yml)

### [Project Home Page](https://n7space.github.io/asn1scc.IDE/)

Expand Down

0 comments on commit d90c678

Please sign in to comment.