Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add workflows release #95

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Conversation

dierbei
Copy link
Contributor

@dierbei dierbei commented Sep 15, 2023

Fix #81

@dierbei dierbei requested review from a team as code owners September 15, 2023 07:40
@xiaods
Copy link

xiaods commented Sep 23, 2023

why not merged it?

@xiaods
Copy link

xiaods commented Sep 23, 2023

suggest squash commit to one commit. give more context on your commit log.

@Burning1020
Copy link
Member

suggest squash commit to one commit. give more context on your commit log.

@dierbei Yes, please squash your commits, thanks.

@dierbei
Copy link
Contributor Author

dierbei commented Sep 23, 2023

Thanks for the suggestion. Wait a minute, I still need to make some adjustments.

@dierbei
Copy link
Contributor Author

dierbei commented Sep 25, 2023

@Burning1020 @xiaods Already rebase. please help me to review, thanks.

.github/workflows/release.yaml Outdated Show resolved Hide resolved
.github/workflows/release.yaml Outdated Show resolved Hide resolved
steps:
- uses: actions/checkout@v3
- name: Build kuasar.img
run: RUNTIME=docker make bin/kuasar.img
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.github/workflows/release.yaml Outdated Show resolved Hide resolved
Comment on lines 162 to 165
- buildSandboxer
- buildShim
- kuasar-image
- vmlinux-bin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have vmm quark wasm target in Makefile. Maybe make vmm, make quark and make wasm could make it simple.

@dierbei dierbei requested a review from a team as a code owner September 27, 2023 07:55
@dierbei dierbei force-pushed the workflow-release branch 3 times, most recently from 5827157 to 720d2a3 Compare September 27, 2023 08:34
@dierbei dierbei requested a review from a team as a code owner October 7, 2023 09:54
@dierbei dierbei force-pushed the workflow-release branch 3 times, most recently from 09ea667 to 0aea580 Compare October 7, 2023 11:41
.github/workflows/release.yaml Outdated Show resolved Hide resolved
.github/workflows/release.yaml Outdated Show resolved Hide resolved
.github/workflows/release.yaml Outdated Show resolved Hide resolved
.github/workflows/release.yaml Outdated Show resolved Hide resolved
.github/workflows/release.yaml Outdated Show resolved Hide resolved
docs/config.toml Outdated Show resolved Hide resolved
scripts/build/cargo-vendor.sh Show resolved Hide resolved
scripts/build/gen-containerd-config.sh Outdated Show resolved Hide resolved
scripts/build/gen-containerd-config.sh Outdated Show resolved Hide resolved
sudo curl -LJO https://github.com/containerd/containerd/releases/download/v1.7.0/containerd-1.7.0-linux-amd64.tar.gz
sudo mkdir bin && sudo tar -C bin -xzvf containerd-1.7.0-linux-amd64.tar.gz

sudo tee bin/config.toml > /dev/null <<EOF
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to add sudo in front of every commands? I mean it is possiable to add it in job.step.run, #95 (comment)

@dierbei dierbei force-pushed the workflow-release branch 5 times, most recently from 8f9ae33 to 22c7c1f Compare October 8, 2023 12:56
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Download and Extract Containerd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build Containerd

.github/workflows/release.yaml Outdated Show resolved Hide resolved
set -e

git clone https://github.com/kuasar-io/containerd.git
mkdir bin && make -C containerd bin/containerd && mv containerd/bin/containerd bin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Append rm -rf containerd, we need to cleanup.

Comment on lines 35 to 37
mkdir ../temp
cp -r ./* ../temp/
tar -czvf $VENDOR_NAME -C ../temp .
Copy link
Member

@Burning1020 Burning1020 Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to place codes kuasar-vx.y.z-vendor folder, like:

# tree -L 2
.
├── kuasar-v0.1.0-vendor
│   ├── ADOPTERS.md
│   ├── CHANGELOG
│   ├── CODE_OF_CONDUCT.md
│   ├── CONTRIBUTING.md
│   ├── docs
│   ├── examples
│   ├── LICENSE
│   ├── MAINTAINERS.md
│   ├── Makefile
│   ├── quark
│   ├── README.md
│   ├── ROADMAP.md
│   ├── shim
│   ├── tests
│   ├── vmm
│   └── wasm
└── kuasar-v0.1.0-vendor.tar.gz

So the scripts should be:

VENDOR_DIR=${GITHUB_REF:10}-vendor
mkdir -p /tmp/VENDOR_DIR
cp -r ./* /tmp/VENDOR_DIR/
tar -czvf $VENDOR_NAME /tmp/VENDOR_DIR/
rm -rf /tmp/VENDOR_DIR

steps:
- uses: actions/checkout@v3
- name: Build Containerd
run: sudo -E ./scripts/build/download-containerd.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build-containerd.sh, not donwload-containerd.sh

@dierbei dierbei force-pushed the workflow-release branch 3 times, most recently from d4e1cfe to 85c6f52 Compare October 11, 2023 06:59
Signed-off-by: dierbei <1628652790@qq.com>
Copy link
Member

@Burning1020 Burning1020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Well done.

@Burning1020 Burning1020 merged commit 46630cf into kuasar-io:main Oct 11, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish new release by Github Action
3 participants