summaryrefslogtreecommitdiff
path: root/.github/workflows/makepkg.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/makepkg.yml
parenteaf38999b43a792b15fb257c7757c6a69ce77f8c (diff)
Added makepkg.yml and fixed rust.yml
Diffstat (limited to '.github/workflows/makepkg.yml')
-rw-r--r--.github/workflows/makepkg.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/makepkg.yml b/.github/workflows/makepkg.yml
new file mode 100644
index 0000000..c0c270f
--- /dev/null
+++ b/.github/workflows/makepkg.yml
@@ -0,0 +1,37 @@
+name: Rust
+
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
+
+env:
+ CARGO_TERM_COLOR: always
+
+jobs:
+ build:
+
+ runs-on: archlinux-latest
+
+ steps:
+
+ - uses: actions/checkout@v4
+ - uses: docker://archlinux:latest
+ - name: Manual build test
+ run: cargo build --verbose
+
+ - name: Cargo tests
+ run: cargo test --verbose
+
+ name: Test makepkg build
+ 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'" \ No newline at end of file