summaryrefslogtreecommitdiff
path: root/.github/workflows/rust.yml
diff options
context:
space:
mode:
authorNamilskyy <alive6863@gmail.com>2025-11-05 18:31:14 +0300
committerNamilskyy <alive6863@gmail.com>2025-11-05 18:31:14 +0300
commitee70d1b63b2f78597f11046d3494dc81a74d26c8 (patch)
tree552365ca90c0e7c21da33c173f55be5ef167560a /.github/workflows/rust.yml
parenteaf38999b43a792b15fb257c7757c6a69ce77f8c (diff)
Added makepkg.yml and fixed rust.yml
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r--.github/workflows/rust.yml32
1 files changed, 6 insertions, 26 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index b609a8f..bd332d1 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -13,36 +13,16 @@ jobs:
build:
runs-on: ubuntu-latest
strategy:
- matrix:
- os: [ubuntu, archlinux]
+ os: ubuntu
steps:
- uses: actions/checkout@v4
- - name: Setup environment (Ubuntu)
- if: matrix.os == 'ubuntu'
- run: |
- sudo apt update
- sudo apt install -y libasound2-dev libx11-dev
+ - name: Setup environment
+ run: apt install -y libasound2-dev libx11-dev
- - name: Test makepkg build (Arch)
- if: matrix.os == 'archlinux'
- uses: docker://archlinux:latest
- with:
- args: |
- bash -c "
- pacman -Sy --noconfirm base-devel git alsa-lib libx11 rustup &&
- useradd -m builder &&
- chown -R builder:builder /github/workspace &&
- cd /github/workspace/aur &&
- sudo -u builder bash -c '
- rustup default stable &&
- makepkg -sf --noconfirm --nocheck --syncdeps'"
-
- - name: Build (Ubuntu)
- if: matrix.os == 'ubuntu'
+ - name: Build
run: cargo build --verbose --release
- - name: Test (Ubuntu)
- if: matrix.os == 'ubuntu'
- run: cargo test --verbose
+ - name: Test
+ run: cargo test --verbose \ No newline at end of file