From cb200b521c4d6bc18b88b7c55b1c1c1948afc23b Mon Sep 17 00:00:00 2001 From: tombl Date: Thu, 8 Feb 2024 00:32:32 +0800 Subject: [PATCH] add ci --- .github/workflows/ci.yml | 16 ++++++++++++++++ .gitignore | 5 ++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000000000..2d6adcfc32f215 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,16 @@ +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + - run: nix build . + - uses: actions/upload-artifact@v4 + with: + name: kernel.wasm + path: result/vmlinux diff --git a/.gitignore b/.gitignore index 0b4599ffed448f..74f1239c558e3c 100644 --- a/.gitignore +++ b/.gitignore @@ -170,4 +170,7 @@ sphinx_*/ /rust-project.json # Nix build output -/result \ No newline at end of file +/result + +# GitHub Actions +!/.github/ \ No newline at end of file