-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
# ref: https://github.com/docker-library/official-images | ||
name: amd64 Docker | ||
|
||
on: [push, pull_request] | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
Distros: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
#platform: [amd64, arm64, riscv64] | ||
platform: [amd64] | ||
distro: [alpine, archlinux, centos, debian, fedora, opensuse, ubuntu] | ||
fail-fast: false | ||
env: | ||
PLATFORM: ${{ matrix.platform }} | ||
DISTRO: ${{ matrix.distro }} | ||
name: ${{ matrix.platform }} • ${{ matrix.distro }} • Bazel | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check docker | ||
run: | | ||
docker info | ||
docker buildx ls | ||
- name: Build env image | ||
run: make --directory=ci ${PLATFORM}_${DISTRO}_env | ||
- name: Build devel project | ||
run: make --directory=ci ${PLATFORM}_${DISTRO}_devel | ||
- name: Build project | ||
run: make --directory=ci ${PLATFORM}_${DISTRO}_build | ||
- name: Test project | ||
run: make --directory=ci ${PLATFORM}_${DISTRO}_test | ||
- uses: actions/checkout@v4 | ||
- name: Check docker | ||
run: | | ||
docker info | ||
docker buildx ls | ||
- name: Build env image | ||
run: make --directory=ci ${{ matrix.platform }}_${{ matrix.distro}}_env | ||
- name: Build devel image | ||
run: make --directory=ci ${{ matrix.platform }}_${{ matrix.distro}_devel | ||
- name: Build project | ||
run: make --directory=ci ${{ matrix.platform }}_${{ matrix.distro}_build | ||
- name: Test project | ||
run: make --directory=ci ${{ matrix.platform }}_${{ matrix.distro}_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
# ref: https://github.com/actions/runner-images | ||
name: amd64 Linux | ||
|
||
on: [push, pull_request] | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
# Building using the github runner environement directly. | ||
jobs: | ||
# Building using the github runner environement directly. | ||
linux: | ||
native: | ||
name: Linux • Bazel | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Install Bazel | ||
run: | | ||
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg | ||
sudo mv bazel.gpg /etc/apt/trusted.gpg.d/ | ||
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list | ||
sudo apt-get update | ||
sudo apt-get install bazel | ||
- name: Check bazel | ||
run: bazel version | ||
- name: Check Bazel | ||
run: bazel version | ||
- name: Build | ||
run: > | ||
bazel build | ||
-c opt | ||
--cxxopt="-std=c++20" | ||
--subcommands=true | ||
--subcommands=pretty_print | ||
... | ||
- name: Test | ||
run: > | ||
bazel test | ||
-c opt | ||
--cxxopt="-std=c++20" | ||
--test_output=errors | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters