Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKagstrom committed Jul 14, 2024
1 parent e413248 commit d411aee
Showing 1 changed file with 56 additions and 56 deletions.
112 changes: 56 additions & 56 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,45 @@ permissions:
on: [push, pull_request]

jobs:
build-linux:
name: Build and test Linux executable
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [amd64, armv7, aarch64, ppc64le, riscv64, i386]

steps:
- uses: actions/checkout@v4

- name: Prepare
run: chmod u+x .github/workflows/*.sh

- name: Build for matrix.arch == amd64
if: ${{ matrix.arch == 'amd64' }}
run: |
sudo .github/workflows/generic-build.sh ${{ matrix.arch }}
sudo .github/workflows/ci-run-tests.sh
wget https://codecov.io/bash || true
bash bash -s /tmp/kcov-kcov || true
- name: Build for matrix.arch == i386
if: ${{ matrix.arch == 'i386' }}
run: |
chmod u+x ./.github/workflows/setup-i386.sh
sudo .github/workflows/setup-i386.sh
sudo schroot -c mychroot -- ./.github/workflows/generic-build.sh ${{ matrix.arch }}
- name: Build for matrix.arch == armv7, aarch64, ppc64le
if: ${{ matrix.arch == 'armv7' || matrix.arch == 'aarch64' || matrix.arch == 'ppc64le' || matrix.arch == 'riscv64' }}
uses: uraimo/run-on-arch-action@v2
with:
arch: ${{ matrix.arch }}
distro: ubuntu22.04
run: |
.github/workflows/generic-build.sh ${{ matrix.arch }}
# build-linux:
# name: Build and test Linux executable
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# arch: [amd64]
# #, armv7, aarch64, ppc64le, riscv64, i386]
#
# steps:
# - uses: actions/checkout@v4
#
# - name: Prepare
# run: chmod u+x .github/workflows/*.sh
#
# - name: Build for matrix.arch == amd64
# if: ${{ matrix.arch == 'amd64' }}
# run: |
# sudo .github/workflows/generic-build.sh ${{ matrix.arch }}
# sudo .github/workflows/ci-run-tests.sh
# wget https://codecov.io/bash || true
# bash bash -s /tmp/kcov-kcov || true
#
# - name: Build for matrix.arch == i386
# if: ${{ matrix.arch == 'i386' }}
# run: |
# chmod u+x ./.github/workflows/setup-i386.sh
# sudo .github/workflows/setup-i386.sh
# sudo schroot -c mychroot -- ./.github/workflows/generic-build.sh ${{ matrix.arch }}
#
# - name: Build for matrix.arch == armv7, aarch64, ppc64le
# if: ${{ matrix.arch == 'armv7' || matrix.arch == 'aarch64' || matrix.arch == 'ppc64le' || matrix.arch == 'riscv64' }}
# uses: uraimo/run-on-arch-action@v2
# with:
# arch: ${{ matrix.arch }}
# distro: ubuntu22.04
# run: |
# .github/workflows/generic-build.sh ${{ matrix.arch }}
#
build-osx:
name: Build OSX executable (macos-latest)
runs-on: macos-latest
Expand All @@ -64,21 +65,21 @@ jobs:
sudo .github/workflows/osx-build.sh
sudo .github/workflows/ci-run-tests.sh
build-freebsd:
runs-on: ubuntu-22.04
name: Build and test FreeBSD executable
steps:
- uses: actions/checkout@v4
- name: FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: pkg install -y binutils cmake elfutils python bash git python2
run: |
chmod u+x .github/workflows/freebsd-build.sh .github/workflows/ci-run-tests.sh
.github/workflows/freebsd-build.sh x86_64
.github/workflows/ci-run-tests.sh
# build-freebsd:
# runs-on: ubuntu-22.04
# name: Build and test FreeBSD executable
# steps:
# - uses: actions/checkout@v4
# - name: FreeBSD
# id: test
# uses: vmactions/freebsd-vm@v1
# with:
# usesh: true
# prepare: pkg install -y binutils cmake elfutils python bash git python2
# run: |
# chmod u+x .github/workflows/freebsd-build.sh .github/workflows/ci-run-tests.sh
# .github/workflows/freebsd-build.sh x86_64
# .github/workflows/ci-run-tests.sh

build-and-push-docker-image:
name: Build and push to Docker Hub
Expand All @@ -87,7 +88,7 @@ jobs:
environment:
name: "Docker Hub"
url: https://hub.docker.com/r/kcov/kcov
if: github.ref == 'refs/heads/master'
#if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -112,7 +113,6 @@ jobs:
docker buildx build \
--tag $IMAGE_TAG \
--platform $PLATFORM \
--push \
.
env:
IMAGE_TAG: kcov/kcov:latest
Expand All @@ -131,4 +131,4 @@ jobs:
# - linux/mips64le
# No users on this platform:
# - linux/ppc64le
PLATFORM: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/riscv64
PLATFORM: linux/amd64

0 comments on commit d411aee

Please sign in to comment.