Bladeren bron

moved to github-ci (#85)

* moved to github-ci

* update badges
Dmitry Filimonchuk 5 jaren geleden
bovenliggende
commit
57dc429786
5 gewijzigde bestanden met toevoegingen van 167 en 59 verwijderingen
  1. 54 0
      .github/workflows/test-build-lnx.yml
  2. 56 0
      .github/workflows/test-build-osx.yml
  3. 54 0
      .github/workflows/test-build-win.yml
  4. 0 58
      .travis.yml
  5. 3 1
      readme.md

+ 54 - 0
.github/workflows/test-build-lnx.yml

@@ -0,0 +1,54 @@
+name: LNX build
+on:
+  pull_request:
+    branches:
+    - master
+    paths-ignore:
+    - '**.md'
+  push:
+    branches:
+    - master
+    paths-ignore:
+    - '**.md'
+
+jobs:
+  build:
+    name: Linux
+    env:
+      CMSIS: CMSIS_5
+    runs-on: ubuntu-latest
+    steps:
+    - name: ARM GCC setup
+      uses: fiam/arm-none-eabi-gcc@v1
+      with:
+        release: 8-2019-q3
+    - name: Checkout
+      uses: actions/checkout@v2
+    - name: Resolve prerequisites
+      run: make cmsis
+    - name: testbuild F103
+      run: make stm32f103x6
+    - name: testbuild F303
+      run: make stm32f303xe
+    - name: testbuild F105
+      run: make stm32f105xb
+    - name: testbuild L052
+      run: make stm32l052x8
+    - name: testbuild L100
+      run: make stm32l100xc
+    - name: testbuild L476
+      run: make stm32l476xg
+    - name: testbuild F429
+      run: make stm32f429xi
+    - name: testbuild L433
+      run: make stm32l433cc
+    - name: testbuild F070
+      run: make stm32f070xb
+    - name: testbuild G431
+      run: make stm32g431xb
+    - name: testbuild F446
+      run: make stm32f446xc
+    - name: testbuild F373
+      run: make stm32f373xc
+    - name: testbuild F745
+      run: make stm32f745xe

+ 56 - 0
.github/workflows/test-build-osx.yml

@@ -0,0 +1,56 @@
+name: OSX build
+on:
+  pull_request:
+    branches:
+    - master
+    paths-ignore:
+    - '**.md'
+  push:
+    branches:
+    - master
+    paths-ignore:
+    - '**.md'
+
+jobs:
+  build:
+    name: OSX
+    env:
+      CMSIS: CMSIS_5
+    runs-on: macos-latest
+    steps:
+    - name: ARM GCC setup
+      uses: fiam/arm-none-eabi-gcc@v1
+      with:
+        release: 8-2019-q3
+    - name: Checkout
+      uses: actions/checkout@v2
+    - name: Update make
+      run: brew install make
+    - name: Resolve prerequisites
+      run: gmake cmsis
+    - name: testbuild F103
+      run: gmake stm32f103x6
+    - name: testbuild F303
+      run: gmake stm32f303xe
+    - name: testbuild F105
+      run: gmake stm32f105xb
+    - name: testbuild L052
+      run: gmake stm32l052x8
+    - name: testbuild L100
+      run: gmake stm32l100xc
+    - name: testbuild L476
+      run: gmake stm32l476xg
+    - name: testbuild F429
+      run: gmake stm32f429xi
+    - name: testbuild L433
+      run: gmake stm32l433cc
+    - name: testbuild F070
+      run: gmake stm32f070xb
+    - name: testbuild G431
+      run: gmake stm32g431xb
+    - name: testbuild F446
+      run: gmake stm32f446xc
+    - name: testbuild F373
+      run: gmake stm32f373xc
+    - name: testbuild F745
+      run: gmake stm32f745xe

+ 54 - 0
.github/workflows/test-build-win.yml

@@ -0,0 +1,54 @@
+name: WIN build
+on:
+  pull_request:
+    branches:
+    - master
+    paths-ignore:
+    - '**.md'
+  push:
+    branches:
+    - master
+    paths-ignore:
+    - '**.md'
+
+jobs:
+  build:
+    name: Windows
+    env:
+      CMSIS: CMSIS_5
+    runs-on: windows-latest
+    steps:
+    - name: ARM GCC setup
+      uses: fiam/arm-none-eabi-gcc@v1
+      with:
+        release: 8-2019-q3
+    - name: Checkout
+      uses: actions/checkout@v2
+    - name: Resolve prerequisites
+      run: make cmsis SHELL=cmd
+    - name: testbuild F103
+      run: make stm32f103x6 SHELL=cmd
+    - name: testbuild F303
+      run: make stm32f303xe SHELL=cmd
+    - name: testbuild F105
+      run: make stm32f105xb SHELL=cmd
+    - name: testbuild L052
+      run: make stm32l052x8 SHELL=cmd
+    - name: testbuild L100
+      run: make stm32l100xc SHELL=cmd
+    - name: testbuild L476
+      run: make stm32l476xg SHELL=cmd
+    - name: testbuild F429
+      run: make stm32f429xi SHELL=cmd
+    - name: testbuild L433
+      run: make stm32l433cc SHELL=cmd
+    - name: testbuild F070
+      run: make stm32f070xb SHELL=cmd
+    - name: testbuild G431
+      run: make stm32g431xb SHELL=cmd
+    - name: testbuild F446
+      run: make stm32f446xc SHELL=cmd
+    - name: testbuild F373
+      run: make stm32f373xc SHELL=cmd
+    - name: testbuild F745
+      run: make stm32f745xe SHELL=cmd

+ 0 - 58
.travis.yml

@@ -1,58 +0,0 @@
-
-language: c
-
-matrix:
-  include:
-    - os: linux
-      install:
-      - export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2?revision=c34d758a-be0c-476e-a2de-af8c6e16a8a2?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,8-2019-q3-update
-      - pushd $HOME
-      - mkdir arm-gcc-toolchain
-      - wget -O $HOME/arm-gcc-toolchain/gcc.tar.bz2 $GCC_URL
-      - cd arm-gcc-toolchain
-      - tar -jxf gcc.tar.bz2 --strip=1
-      - export PATH=$HOME/arm-gcc-toolchain/bin:$PATH
-      - export GMAKE=make
-      - popd
-
-    - os: windows
-      install:
-      - export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-win32.zip?revision=2f0fd855-d015-423c-9c76-c953ae7e730b?product=GNU%20Arm%20Embedded%20Toolchain,ZIP,,Windows,8-2019-q3-update
-      - pushd $HOME
-      - mkdir arm-gcc-toolchain
-      - wget --no-check-certificate -O arm-gcc.zip $GCC_URL
-      - 7z x arm-gcc.zip -oarm-gcc-toolchain -r -y
-      - export PATH=$HOME/arm-gcc-toolchain/bin:$PATH
-      - export GMAKE="mingw32-make SHELL=cmd"
-      - popd
-
-    - os: osx
-      install:
-      - export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-mac.tar.bz2?revision=6a06dd2b-bb98-4708-adac-f4c630c33f4f?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Mac%20OS%20X,8-2019-q3-update
-      - pushd $HOME
-      - mkdir arm-gcc-toolchain
-      - wget -O ./arm-gcc-toolchain/gcc.tar.bz2 $GCC_URL
-      - cd arm-gcc-toolchain
-      - tar -jxf gcc.tar.bz2 --strip=1
-      - export PATH=$HOME/arm-gcc-toolchain/bin:$PATH
-      - export GMAKE=make
-      - popd
-
-before_script:
-  - $GMAKE -v
-  - arm-none-eabi-gcc --version
-
-script:
-  - $GMAKE cmsis
-  - $GMAKE stm32f103x6
-  - $GMAKE stm32f303xe
-  - $GMAKE stm32f105xb
-  - $GMAKE stm32l052x8
-  - $GMAKE stm32l100xc
-  - $GMAKE stm32l476xg
-  - $GMAKE stm32f429xi
-  - $GMAKE stm32l433cc
-  - $GMAKE stm32f070xb
-  - $GMAKE stm32g431xb
-  - $GMAKE stm32f446xc
-  - $GMAKE stm32f373xc

+ 3 - 1
readme.md

@@ -1,4 +1,6 @@
-![Travis (.org) branch](https://img.shields.io/travis/dmitrystu/libusb_stm32/master?logo=travis)
+![LNX build](https://github.com/dmitrystu/libusb_stm32/workflows/LNX%20build/badge.svg)
+![WIN build](https://github.com/dmitrystu/libusb_stm32/workflows/WIN%20build/badge.svg)
+![OSX build](https://github.com/dmitrystu/libusb_stm32/workflows/OSX%20build/badge.svg)
 
 ### Lightweight USB Device Stack ###