feat: add CI
This commit is contained in:
parent
0055e12289
commit
a378cf7a35
1 changed files with 56 additions and 0 deletions
56
.gitea/workflows/ci.yml
Normal file
56
.gitea/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build-amd64:
|
||||
runs-on: [rust-latest, amd64-builder]
|
||||
steps:
|
||||
- name: System Info
|
||||
run: uname -m
|
||||
|
||||
- name: Setup
|
||||
run: |
|
||||
apt update -y
|
||||
apt install -y curl gnupg
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||
apt install -y nodejs
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Build
|
||||
run: cargo build --release
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: servus-amd64
|
||||
path: target/release/servus
|
||||
|
||||
build-arm64:
|
||||
runs-on: [rust-latest, arm64-builder]
|
||||
steps:
|
||||
- name: System Info
|
||||
run: uname -m
|
||||
|
||||
- name: Setup
|
||||
run: |
|
||||
apt update -y
|
||||
apt install -y curl gnupg
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||
apt install -y nodejs
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Build
|
||||
run: cargo build --release
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: servus-arm64
|
||||
path: target/release/servus
|
||||
Loading…
Add table
Add a link
Reference in a new issue