diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-09-03 01:18:06 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-09-03 19:55:09 +0200 |
commit | 57656d7fe467af8a74a6df0abb1814411e3efd40 (patch) | |
tree | adcd9c672a869e5eabbffab1a2744de1b78336a6 /.github/workflows | |
parent | 8a7732f2a59742aa35d1447c5bac237ed5f885ef (diff) |
CI and tarball/SDK support
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e5b1825 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,51 @@ +name: Build +on: + push: + branches: + - main + pull_request: + branches: + - main + types: [opened, synchronize, reopened] + release: + types: [created] + schedule: + - cron: "0 13 * * 1" + +jobs: + test: + name: ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + os: ["ubuntu-latest", "ubuntu-18.04"] + include: + - compiler: "default-cc" + os: "ubuntu-latest" + - compiler: "gcc-7" + os: "ubuntu-latest" + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: Install Ubuntu Prerequisites + if: startsWith(matrix.os, 'ubuntu') + run: | + sudo apt-get update + sudo apt-get install autoconf automake cmake libtool pkg-config gettext flex bison + sudo apt-get install ${{ matrix.compiler }} lcov + - name: Build + run: | + ./mingw-w64-build --jobs 8 --keep-artifacts --tarball ./mingw-w64-toolchain.tbz2 i686 x86_64 + - name: SHA512 + run: | + sha512sum -b ./mingw-w64-toolchain.tbz2 >./mingw-w64-toolchain.tbz2.sha512 + - uses: actions/upload-artifact@v2 + with: + name: mingw-w64-toolchain + path: | + ./mingw-w64-toolchain.tbz2 + ./mingw-w64-toolchain.tbz2.sha512 + retention-days: 7 |