-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gha: split bindings-ci into per-language actions
This will make it easier to add per-language lints and checks. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
- Loading branch information
Showing
3 changed files
with
115 additions
and
38 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# libpathrs: safe path resolution on Linux | ||
# Copyright (C) 2019-2024 Aleksa Sarai <cyphar@cyphar.com> | ||
# Copyright (C) 2019-2024 SUSE LLC | ||
# | ||
# This program is free software: you can redistribute it and/or modify it under | ||
# the terms of the GNU Lesser General Public License as published by the Free | ||
# Software Foundation, either version 3 of the License, or (at your option) any | ||
# later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, but WITHOUT ANY | ||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
# PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License along | ||
# with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
release: | ||
types: [ published ] | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
name: bindings-c | ||
|
||
jobs: | ||
smoke-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Build and install libpathrs.so. | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: build libpathrs | ||
run: make release | ||
- name: install libpathrs | ||
run: sudo ./install.sh --libdir=/usr/lib | ||
# Run smoke-tests. | ||
- run: make -C examples/c smoke-test | ||
|
||
complete: | ||
needs: | ||
- smoke-test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "C CI jobs completed successfully." |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# libpathrs: safe path resolution on Linux | ||
# Copyright (C) 2019-2024 Aleksa Sarai <cyphar@cyphar.com> | ||
# Copyright (C) 2019-2024 SUSE LLC | ||
# | ||
# This program is free software: you can redistribute it and/or modify it under | ||
# the terms of the GNU Lesser General Public License as published by the Free | ||
# Software Foundation, either version 3 of the License, or (at your option) any | ||
# later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, but WITHOUT ANY | ||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
# PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License along | ||
# with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
release: | ||
types: [ published ] | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
name: bindings-go | ||
|
||
jobs: | ||
smoke-test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: ["1.18.x", "1.21.x", "1.22.x"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Build and install libpathrs.so. | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: build libpathrs | ||
run: make release | ||
- name: install libpathrs | ||
run: sudo ./install.sh --libdir=/usr/lib | ||
# Setup go. | ||
- name: install go ${{ matrix.go-version }} | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
check-latest: true | ||
# Run smoke-tests. | ||
- run: make -C examples/go smoke-test | ||
|
||
complete: | ||
needs: | ||
- smoke-test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "Go CI jobs completed successfully." |
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