summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-03 15:19:10 +0400
committerMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-03 15:19:10 +0400
commitcf52cb6a7e4053b3f83438e86f300cbfd06d4a46 (patch)
tree8abe213d9f9e9e35c9d79609d84a1ce461c559d7 /.github/workflows
parentc4f51ba3d0474492861044b0765d9580cbbff75b (diff)
fix builds
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml25
1 files changed, 21 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2c1c3b2..30b118f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -50,8 +50,6 @@ jobs:
- macOS-latest
rust:
- stable
- - beta
- - nightly
runs-on: ${{ matrix.os }}
needs: [compile]
steps:
@@ -64,6 +62,25 @@ jobs:
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
- rust-version: ${{ matrix.rust }}
+ rust-version: stable
+ - uses: actions/setup-go@v3
+ with:
+ go-version: '1.16.1' # The Go version to download (if necessary) and use.
- name: Build | Compile
- run: cargo test
+ run: cargo build --release
+ - name: Build | All in one
+ run:
+ - cd exes/all
+ - make build
+ shell: bash
+ - name: Finish | Prepare artifacts
+ run:
+ - mkdir -p artifacts
+ - cp target/release/{cache,gateway,webhook,ratelimit} ./artifacts
+ - cp exes/all/build/all ./artifacts
+ shell: bash
+ - name: Finish | Archive build results
+ uses: actions/upload-artifact@v3
+ with:
+ name: artifacts
+ path: artifacts/* \ No newline at end of file