merge ci steps back into one job for now
how do i persist or reuse the "state" of previous jobs Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
a4b28507de
commit
de38d61126
1 changed files with 95 additions and 106 deletions
55
.github/workflows/ci.yml
vendored
55
.github/workflows/ci.yml
vendored
|
@ -26,9 +26,29 @@ permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
build-and-test:
|
||||||
name: CI Setup
|
name: CI, Tests, Artifacts, and Publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target: [
|
||||||
|
"static-x86_64-unknown-linux-musl",
|
||||||
|
"static-x86_64-unknown-linux-musl-jemalloc",
|
||||||
|
"static-x86_64-unknown-linux-musl-hmalloc",
|
||||||
|
"static-aarch64-unknown-linux-musl",
|
||||||
|
"static-aarch64-unknown-linux-musl-jemalloc",
|
||||||
|
"static-aarch64-unknown-linux-musl-hmalloc",
|
||||||
|
]
|
||||||
|
oci-target: [
|
||||||
|
"x86_64-unknown-linux-gnu",
|
||||||
|
"x86_64-unknown-linux-musl",
|
||||||
|
"x86_64-unknown-linux-musl-jemalloc",
|
||||||
|
"x86_64-unknown-linux-musl-hmalloc",
|
||||||
|
"aarch64-unknown-linux-musl",
|
||||||
|
"aarch64-unknown-linux-musl-jemalloc",
|
||||||
|
"aarch64-unknown-linux-musl-hmalloc",
|
||||||
|
]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Sync repository
|
- name: Sync repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -92,31 +112,6 @@ jobs:
|
||||||
./bin/nix-build-and-cache .#devShells.x86_64-linux.default.inputDerivation
|
./bin/nix-build-and-cache .#devShells.x86_64-linux.default.inputDerivation
|
||||||
|
|
||||||
|
|
||||||
build-and-test:
|
|
||||||
name: CI and Artifacts
|
|
||||||
needs: setup
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
target: [
|
|
||||||
"static-x86_64-unknown-linux-musl",
|
|
||||||
"static-x86_64-unknown-linux-musl-jemalloc",
|
|
||||||
"static-x86_64-unknown-linux-musl-hmalloc",
|
|
||||||
"static-aarch64-unknown-linux-musl",
|
|
||||||
"static-aarch64-unknown-linux-musl-jemalloc",
|
|
||||||
"static-aarch64-unknown-linux-musl-hmalloc",
|
|
||||||
]
|
|
||||||
oci-target: [
|
|
||||||
"x86_64-unknown-linux-gnu",
|
|
||||||
"x86_64-unknown-linux-musl",
|
|
||||||
"x86_64-unknown-linux-musl-jemalloc",
|
|
||||||
"x86_64-unknown-linux-musl-hmalloc",
|
|
||||||
"aarch64-unknown-linux-musl",
|
|
||||||
"aarch64-unknown-linux-musl-jemalloc",
|
|
||||||
"aarch64-unknown-linux-musl-hmalloc",
|
|
||||||
]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Perform continuous integration
|
- name: Perform continuous integration
|
||||||
run: direnv exec . engage
|
run: direnv exec . engage
|
||||||
|
|
||||||
|
@ -158,12 +153,6 @@ jobs:
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
publish:
|
|
||||||
needs: build-and-test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Extract metadata for Dockerhub
|
- name: Extract metadata for Dockerhub
|
||||||
env:
|
env:
|
||||||
REGISTRY: registry.hub.docker.com
|
REGISTRY: registry.hub.docker.com
|
||||||
|
|
Loading…
Add table
Reference in a new issue