-
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.
rename cdk to aggkit :fingers_crossed:
- Loading branch information
1 parent
e734164
commit 035938f
Showing
31 changed files
with
146 additions
and
146 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 +1 @@ | ||
@0xPolygon/core-cdk | ||
@agglayer/aggkit |
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 |
---|---|---|
|
@@ -44,46 +44,46 @@ jobs: | |
- name: Build the rust binary | ||
run: | | ||
BUILD_SCRIPT_DISABLED=1 | ||
cargo build --release --bin cdk | ||
cargo build --release --bin aggkit-cli | ||
- name: making directory structure | ||
run: mkdir -p packaging/deb/cdk/usr/bin/ | ||
run: mkdir -p packaging/deb/aggkit/usr/bin/ | ||
- name: copying necessary binary for arm64 | ||
run: cp -rp target/cdk-node packaging/deb/cdk/usr/bin/cdk-node | ||
run: cp -rp target/aggkit packaging/deb/aggkit/usr/bin/aggkit | ||
- name: copying rust binary for arm64 | ||
run: cp -rp target/release/cdk packaging/deb/cdk/usr/bin/cdk | ||
run: cp -rp target/release/aggkit-cli packaging/deb/aggkit-cli/usr/bin/aggkit-cli | ||
|
||
# Control file creation | ||
- name: Create control file | ||
run: | | ||
echo "Package: cdk" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Version: ${{ env.VERSION }}" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Section: base" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Priority: optional" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Architecture: arm64" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Maintainer: [email protected]" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Description: cdk binary package" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Package: aggkit" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Version: ${{ env.VERSION }}" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Section: base" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Priority: optional" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Architecture: arm64" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Maintainer: [email protected]" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Description: aggkit binary package" >> packaging/deb/aggkit/DEBIAN/control | ||
- name: Creating package for binary for cdk ${{ env.ARCH }} | ||
run: cp -rp packaging/deb/cdk packaging/deb/cdk-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
- name: Creating package for binary for aggkit ${{ env.ARCH }} | ||
run: cp -rp packaging/deb/aggkit packaging/deb/aggkit-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
env: | ||
ARCH: arm64 | ||
|
||
- name: Running package build | ||
run: dpkg-deb --build --root-owner-group packaging/deb/cdk-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
run: dpkg-deb --build --root-owner-group packaging/deb/aggkit-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
env: | ||
ARCH: arm64 | ||
|
||
- name: create checksum for the arm64 package | ||
run: cd packaging/deb/ && sha256sum cdk-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb > cdk-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb.checksum | ||
run: cd packaging/deb/ && sha256sum aggkit-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb > aggkit-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb.checksum | ||
env: | ||
ARCH: arm64 | ||
|
||
- name: Release cdk Packages | ||
- name: Release aggkit Packages | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ env.GIT_TAG }} | ||
prerelease: true | ||
files: | | ||
packaging/deb/cdk**.deb | ||
packaging/deb/cdk**.deb.checksum | ||
packaging/deb/aggkit**.deb | ||
packaging/deb/aggkit**.deb.checksum |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
|
||
|
||
jobs: | ||
build-cdk-image: | ||
build-aggkit-image: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
steps: | ||
|
@@ -16,22 +16,22 @@ jobs: | |
with: | ||
go-version: 1.22.x | ||
|
||
- name: Build cdk docker image | ||
- name: Build aggkit docker image | ||
run: make build-docker | ||
|
||
- name: Save cdk image to archive | ||
run: docker save --output /tmp/cdk.tar cdk | ||
- name: Save aggkit image to archive | ||
run: docker save --output /tmp/aggkit.tar aggkit | ||
|
||
- name: Upload archive | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cdk | ||
path: /tmp/cdk.tar | ||
name: aggkit | ||
path: /tmp/aggkit.tar | ||
|
||
test-e2e: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
needs: build-cdk-image | ||
needs: build-aggkit-image | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -77,15 +77,15 @@ jobs: | |
- name: Setup Bats and bats libs | ||
uses: bats-core/[email protected] | ||
|
||
- name: Download cdk archive | ||
- name: Download aggkit archive | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: cdk | ||
name: aggkit | ||
path: /tmp | ||
|
||
- name: Load cdk image | ||
- name: Load aggkit image | ||
run: | | ||
docker load --input /tmp/cdk.tar | ||
docker load --input /tmp/aggkit.tar | ||
docker image ls -a | ||
- name: Run e2e tests | ||
|
@@ -106,7 +106,7 @@ jobs: | |
archive_name="dump_run_with_args_${{matrix.e2e-group}}_${{ github.run_id }}" | ||
echo "ARCHIVE_NAME=${archive_name}" >> "$GITHUB_ENV" | ||
echo "Generated archive name: ${archive_name}" | ||
kurtosis service exec cdk cdk-node-001 'cat /etc/cdk/cdk-node-config.toml' > ./dump/cdk-node-config.toml | ||
kurtosis service exec aggkit cdk-node-001 'cat /etc/cdk/cdk-node-config.toml' > ./dump/cdk-node-config.toml | ||
- name: Upload logs | ||
if: failure() | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,47 +43,47 @@ jobs: | |
- name: Build the rust binary | ||
run: | | ||
BUILD_SCRIPT_DISABLED=1 | ||
cargo build --release --bin cdk | ||
cargo build --release --bin aggkit-cli | ||
- name: making directory structure | ||
run: mkdir -p packaging/deb/cdk/usr/bin/ | ||
run: mkdir -p packaging/deb/aggkit/usr/bin/ | ||
- name: copying necessary binary for amd64 | ||
run: cp -rp target/cdk-node packaging/deb/cdk/usr/bin/cdk-node | ||
run: cp -rp target/aggkit packaging/deb/aggkit/usr/bin/aggkit | ||
- name: copying rust binary for amd64 | ||
run: cp -rp target/release/cdk packaging/deb/cdk/usr/bin/cdk | ||
run: cp -rp target/release/aggkit-cli packaging/deb/aggkit/usr/bin/aggkit-cli | ||
|
||
# Control file creation | ||
- name: Create control file | ||
run: | | ||
echo "Package: cdk" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Version: ${{ env.VERSION }}" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Section: base" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Priority: optional" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Architecture: amd64" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Maintainer: [email protected]" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Description: cdk binary package" >> packaging/deb/cdk/DEBIAN/control | ||
echo "Package: aggkit" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Version: ${{ env.VERSION }}" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Section: base" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Priority: optional" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Architecture: amd64" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Maintainer: [email protected]" >> packaging/deb/aggkit/DEBIAN/control | ||
echo "Description: aggkit binary package" >> packaging/deb/aggkit/DEBIAN/control | ||
- name: Creating package for binary for cdk ${{ env.ARCH }} | ||
run: cp -rp packaging/deb/cdk packaging/deb/cdk-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
- name: Creating package for binary for aggkit ${{ env.ARCH }} | ||
run: cp -rp packaging/deb/aggkit packaging/deb/aggkit-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
env: | ||
ARCH: amd64 | ||
|
||
- name: Running package build | ||
run: dpkg-deb --build --root-owner-group packaging/deb/cdk-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
run: dpkg-deb --build --root-owner-group packaging/deb/aggkit-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
env: | ||
ARCH: amd64 | ||
|
||
- name: Create checksum for the amd64 package | ||
run: cd packaging/deb/ && sha256sum cdk-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb > cdk-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb.checksum | ||
run: cd packaging/deb/ && sha256sum aggkit-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb > aggkit-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb.checksum | ||
env: | ||
ARCH: amd64 | ||
|
||
|
||
- name: Release cdk Packages | ||
- name: Release aggkit Packages | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ env.GIT_TAG }} | ||
prerelease: true | ||
files: | | ||
packaging/deb/cdk**.deb | ||
packaging/deb/cdk**.deb.checksum | ||
packaging/deb/aggkit**.deb | ||
packaging/deb/aggkit**.deb.checksum |
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
Oops, something went wrong.