Files
rust-setup/.gitea/workflows/build.yml
akshun 24164c8042
Some checks failed
Build on Multiple Distributions / build-on-arch (push) Failing after 1m13s
Build on Multiple Distributions / build-on-debian (push) Failing after 1m30s
Build on Multiple Distributions / build-on-fedora (push) Failing after 1m45s
Update .gitea/workflows/build.yml
2025-06-05 23:31:09 +00:00

81 lines
1.8 KiB
YAML

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:
- name: Install dependencies
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm git rustup gcc
rustup default stable
- uses: actions/checkout@v1
- name: Build with cargo
run: |
cargo build --release
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: arch-setup
path: target/release/setup
build-on-debian:
runs-on: ubuntu-latest
container:
image: debian:stable
steps:
- name: Install dependencies
run: |
apt update && apt upgrade -y
apt install -y git curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. $HOME/.cargo/env
- uses: actions/checkout@v1
- name: Build with cargo
run: |
cargo build --release
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: debian-setup
path: target/release/setup
build-on-fedora:
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: Install dependencies
run: |
dnf update -y
dnf install -y git curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. $HOME/.cargo/env
- uses: actions/checkout@v1
- name: Build with cargo
run: |
cargo build --release
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: fedora-setup
path: target/release/setup