diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e712bf5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Rust + +on: + push: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --release + - name: Pack + run: mkdir target/pack&&mv target/release/pingpong target/pack/pingpong&&cp config target/pack/config&&zip -q -r target/pack/pingpong.zip target/pack/* + - name: Archive code coverage results + uses: actions/upload-artifact@v4 + with: + name: pingpong.zip + path: target/pack/pingpong.zip