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:
|
||||
build-on-arch:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: archlinux:latest
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
- name: Install basic dependencies
|
||||
run: |
|
||||
pacman -Syu --noconfirm
|
||||
pacman -S --noconfirm git rustup gcc
|
||||
pacman -S --noconfirm git nodejs npm rustup gcc
|
||||
rustup default stable
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build with cargo
|
||||
run: |
|
||||
cargo build --release
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: arch-setup
|
||||
path: target/release/setup
|
||||
@@ -38,22 +26,20 @@ jobs:
|
||||
container:
|
||||
image: debian:stable
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
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
|
||||
. $HOME/.cargo/env
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build with cargo
|
||||
run: |
|
||||
cargo build --release
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: debian-setup
|
||||
path: target/release/setup
|
||||
@@ -63,22 +49,20 @@ jobs:
|
||||
container:
|
||||
image: fedora:latest
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
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
|
||||
. $HOME/.cargo/env
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build with cargo
|
||||
run: |
|
||||
cargo build --release
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: fedora-setup
|
||||
path: target/release/setup
|
||||
Reference in New Issue
Block a user