Update .gitea/workflows/build.yml
This commit is contained in:
@@ -1,34 +1,22 @@
|
|||||||
name: Build on Multiple Distributions
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-on-arch:
|
build-on-arch:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: archlinux:latest
|
image: archlinux:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install basic dependencies
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
run: |
|
||||||
pacman -Syu --noconfirm
|
pacman -Syu --noconfirm
|
||||||
pacman -S --noconfirm git rustup gcc
|
pacman -S --noconfirm git nodejs npm rustup gcc
|
||||||
rustup default stable
|
rustup default stable
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build with cargo
|
- name: Build with cargo
|
||||||
run: |
|
run: |
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
- name: Upload artifact
|
- uses: actions/upload-artifact@v3
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
name: arch-setup
|
name: arch-setup
|
||||||
path: target/release/setup
|
path: target/release/setup
|
||||||
@@ -38,22 +26,20 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: debian:stable
|
image: debian:stable
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
apt update && apt upgrade -y
|
apt update && apt upgrade -y
|
||||||
apt install -y git curl
|
apt install -y git nodejs npm curl
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
. $HOME/.cargo/env
|
. $HOME/.cargo/env
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build with cargo
|
- name: Build with cargo
|
||||||
run: |
|
run: |
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
- name: Upload artifact
|
- uses: actions/upload-artifact@v3
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
name: debian-setup
|
name: debian-setup
|
||||||
path: target/release/setup
|
path: target/release/setup
|
||||||
@@ -63,22 +49,20 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: fedora:latest
|
image: fedora:latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
dnf update -y
|
dnf update -y
|
||||||
dnf install -y git curl
|
dnf install -y git nodejs npm curl
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
. $HOME/.cargo/env
|
. $HOME/.cargo/env
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build with cargo
|
- name: Build with cargo
|
||||||
run: |
|
run: |
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
- name: Upload artifact
|
- uses: actions/upload-artifact@v3
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
name: fedora-setup
|
name: fedora-setup
|
||||||
path: target/release/setup
|
path: target/release/setup
|
||||||
Reference in New Issue
Block a user