diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2025-06-25 15:13:45 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2025-06-25 15:14:13 +0000 |
| commit | 5f99da5545ebe3c081dc126e00ec7d801db9c772 (patch) | |
| tree | e692d78fdb6bc34a660e9e586c121e03afb8b5ff /.github | |
| parent | 5c7ba42d2e90bdd94bb55c80d0787e998fad44f9 (diff) | |
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/main.yml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000000..c2bdef471011 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,59 @@ +name: linux/mac + +on: + push: + branches: [ '*' ] + pull_request: + branches: [ master ] + +jobs: + + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + compiler: + - gcc + - clang + os: + - ubuntu-latest + - macOS-latest + + steps: + - uses: actions/checkout@v2 + + - run: env | sort + - name: Install software + run: | + if [[ '${{ matrix.os }}' == macOS-latest ]]; then + brew install automake bash coreutils make + echo ::add-path::/usr/local/opt/coreutils/libexec/gnubin + echo ::add-path::/usr/local/opt/make/libexec/gnubin + fi + - name: Fetch branches + run: | + git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* + git fetch --unshallow + + - run: ./bootstrap + - run: ./configure + - run: make + - run: make test-all + + - run: | + git clean -d -x -f + rm -fr tests/run-test-suite + git worktree prune + + - name: Compiler version + run: ${{ matrix.compiler }} --version + env: + CC: ${{ matrix.compiler }} + - run: cmake . + env: + CC: ${{ matrix.compiler }} + - run: make + env: + CC: ${{ matrix.compiler }} + - run: make test |
