From 13ad86a968720db2d8c74df446c425e6ad387b9a Mon Sep 17 00:00:00 2001 From: Aran Varun Date: Sun, 5 May 2024 14:50:16 +0300 Subject: [PATCH] github actions --- .dockerignore | 1 + .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.dockerignore b/.dockerignore index 3645101..b8ca802 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,3 +3,4 @@ Dockerfile .dockerignore .git .gitignore +.github diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..14df7a9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build + +on: + push: + branches: [main] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Compile + id: compile + uses: rust-build/rust-build.action@v1.4.5 + with: + RUSTTARGET: x86_64-unknown-linux-musl + UPLOAD_MODE: none + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: Binary + path: | + ${{ steps.compile.outputs.BUILT_ARCHIVE }} + ${{ steps.compile.outputs.BUILT_CHECKSUM }} +