-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: adopt reusable workflows from
named-data/actions
Change-Id: I372cc2fa1b26cede28982bbd88ca445eb08eef5c
- Loading branch information
Showing
2 changed files
with
8 additions
and
84 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,65 +1,12 @@ | ||
name: CI | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.md' | ||
- '.mailmap' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
permissions: {} | ||
|
||
jobs: | ||
linux: | ||
name: ${{ matrix.compiler }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04] | ||
compiler: [g++-7, g++-8, g++-9, g++-10, | ||
clang++-7, clang++-8, clang++-9, clang++-10, clang++-11, clang++-12] | ||
include: | ||
- os: ubuntu-22.04 | ||
compiler: g++-11 | ||
- os: ubuntu-22.04 | ||
compiler: g++-12 | ||
- os: ubuntu-22.04 | ||
compiler: clang++-13 | ||
- os: ubuntu-22.04 | ||
compiler: clang++-14 | ||
env: | ||
CXX: ${{ matrix.compiler }} | ||
steps: | ||
- name: Install C++ compiler | ||
run: | | ||
sudo apt-get -qy install ${CXX/clang++/clang} | ||
${CXX} --version | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build and test | ||
run: ./.jenkins | ||
|
||
macos: | ||
name: Xcode ${{ matrix.xcode }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-11] | ||
xcode: ['12.4', '12.5', '13.2'] | ||
include: | ||
- os: macos-12 | ||
xcode: '13.4' | ||
- os: macos-12 | ||
xcode: '14.2' | ||
steps: | ||
- name: Set up Xcode | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: ${{ matrix.xcode }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build and test | ||
run: ./.jenkins | ||
Ubuntu: | ||
uses: named-data/actions/.github/workflows/jenkins-script-ubuntu.yml@v1 | ||
macOS: | ||
uses: named-data/actions/.github/workflows/jenkins-script-macos.yml@v1 |
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,33 +1,10 @@ | ||
name: Docs | ||
on: | ||
push: | ||
paths-ignore: | ||
- '*.md' | ||
- '.mailmap' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
permissions: {} | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, ubuntu-latest] | ||
env: | ||
JOB_NAME: Docs | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: | | ||
find .jenkins.d/ -type f -name '[1-9]*.sh' -exec chmod -x '{}' + | ||
./.jenkins | ||
- name: Build documentation | ||
run: | | ||
pybindir=$(python3 -c 'import sysconfig; print(sysconfig.get_path("scripts", "posix_user"))') | ||
export PATH="${pybindir}${PATH:+:}${PATH}" | ||
./waf --color=yes configure | ||
./waf --color=yes build --targets=manpages | ||
man: | ||
uses: named-data/actions/.github/workflows/docs-man.yml@v1 |