Update .gitea/workflows/build.yml
This commit is contained in:
@@ -14,22 +14,14 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: archlinux:latest
|
image: archlinux:latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Install basic dependencies
|
|
||||||
run: |
|
|
||||||
pacman -Syu --noconfirm
|
|
||||||
pacman -S --noconfirm git nodejs npm
|
|
||||||
|
|
||||||
- name: Checkout code
|
|
||||||
run: |
|
|
||||||
git clone https://gitea.akshun-lab.uk/akshun/rust-setup.git .
|
|
||||||
git checkout $GITEA_SHA
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pacman -S --noconfirm rustup gcc
|
pacman -Syu --noconfirm
|
||||||
|
pacman -S --noconfirm git rustup gcc
|
||||||
rustup default stable
|
rustup default stable
|
||||||
|
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Build with cargo
|
- name: Build with cargo
|
||||||
run: |
|
run: |
|
||||||
cargo build --release
|
cargo build --release
|
||||||
@@ -45,20 +37,14 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: debian:stable
|
image: debian:stable
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Install basic dependencies
|
|
||||||
run: |
|
|
||||||
apt update && apt upgrade -y
|
|
||||||
apt install -y git nodejs npm
|
|
||||||
|
|
||||||
- name: Checkout code
|
|
||||||
run: |
|
|
||||||
git clone https://gitea.akshun-lab.uk/akshun/rust-setup.git .
|
|
||||||
git checkout $GITEA_SHA
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
apt install -y cargo
|
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
|
- name: Build with cargo
|
||||||
run: |
|
run: |
|
||||||
@@ -75,20 +61,14 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: fedora:latest
|
image: fedora:latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Install basic dependencies
|
|
||||||
run: |
|
|
||||||
dnf up -y
|
|
||||||
dnf install -y git nodejs npm
|
|
||||||
|
|
||||||
- name: Checkout code
|
|
||||||
run: |
|
|
||||||
git clone https://gitea.akshun-lab.uk/akshun/rust-setup.git .
|
|
||||||
git checkout $GITEA_SHA
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
dnf install -y cargo
|
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
|
- name: Build with cargo
|
||||||
run: |
|
run: |
|
||||||
@@ -99,4 +79,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: fedora-setup
|
name: fedora-setup
|
||||||
path: target/release/setup
|
path: target/release/setup
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user