Skip to content

Commit

Permalink
ci: add build job
Browse files Browse the repository at this point in the history
The `build` job ensures that Podlet can be built for all supported
platforms, Linux, Windows, and macOS.

Signed-off-by: Paul Nettleton <[email protected]>
  • Loading branch information
k9withabone committed May 20, 2024
1 parent 5b4ff67 commit b6be7ea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,23 @@ jobs:

- run: cargo test --verbose

build:
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Rust Toolchain
uses: dtolnay/rust-toolchain@stable

- run: cargo build --verbose

build-container:
needs: build
runs-on: ubuntu-latest
env:
MANIFEST: podlet-multiarch
Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ below is a list of all the jobs with explanations and the commands that they run
- Unit tests are defined in the source.
- All tests should pass.
- `cargo test`
- build:
- Ensures Podlet can build on all target platforms.
- `cargo build`
- build-container:
- Ensures that the [Podlet container](./Containerfile) can build for both x86 and ARM platforms.
- First, [install Buildah](https://github.com/containers/buildah/blob/main/install.md).
Expand Down

0 comments on commit b6be7ea

Please sign in to comment.