summaryrefslogtreecommitdiff
path: root/.github/workflows/makepkg.yml
blob: b149d302435a1e5af653f644b24cd31035d04322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 
      runL: 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'"