Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/arch-pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build Arch Package

on:
push:
branches: [ "main" ]
paths:
- '.github/workflows/arch-pkg.yml'
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/arch-pkg.yml'
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'

jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:base-devel
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: pacman -Syu --noconfirm $(grep '\(make\)\?depends' PKGBUILD | cut -d= -f2 | sed 's/[()]//g')
- name: Create user for makepkg
run: useradd -m makepkg
- name: Allow makepkg to build in current dir
run: chown -R makepkg .
- name: Build package
run: su makepkg -s /bin/sh -c 'makepkg'
- name: Install package
run: pacman -U banger_rs-*-x86_64.pkg.tar.zst --noconfirm
12 changes: 5 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
name: Rust
name: Check code format

on:
push:
branches: [ "main" ]
paths:
- 'src/**'
pull_request:
branches: [ "main" ]
paths:
- 'src/**'

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Check format
run: cargo fmt --check
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/target
tags
Cargo.lock
Loading