add CI
This commit is contained in:
		
							parent
							
								
									9ea0055067
								
							
						
					
					
						commit
						2fce15e7f6
					
				
							
								
								
									
										44
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,44 @@
 | 
				
			||||||
 | 
					name: Build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches: [master]
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					    branches: [master]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  build-arch:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    container:
 | 
				
			||||||
 | 
					      image: archlinux:latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Install dependencies
 | 
				
			||||||
 | 
					        run: pacman -Syu --noconfirm base-devel rust
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Build Arch package
 | 
				
			||||||
 | 
					        run: makepkg -sf --noconfirm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Upload Arch package
 | 
				
			||||||
 | 
					        uses: actions/upload-artifact@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          name: pokerust.pkg.tar.zst
 | 
				
			||||||
 | 
					          path: ./*.pkg.tar.zst
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  build:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Install dependencies
 | 
				
			||||||
 | 
					        run: sudo apt-get install -y dpkg-dev
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Build Debian package
 | 
				
			||||||
 | 
					        run: ./build/debian.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Upload Debian package
 | 
				
			||||||
 | 
					        uses: actions/upload-artifact@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          name: pokerust.deb
 | 
				
			||||||
 | 
					          path: ./build/debian/pokerust.deb
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
pkgname=pokerust-git
 | 
					pkgname=pokerust-git
 | 
				
			||||||
pkgdesc="Pokemon Colorscripts written in Rust"
 | 
					pkgdesc="Pokemon Colorscripts written in Rust"
 | 
				
			||||||
_gitname=pokerust
 | 
					_gitname=pokerust
 | 
				
			||||||
pkgver=r5.7fe497e
 | 
					pkgver=r8.c1e2b64
 | 
				
			||||||
pkgrel=1
 | 
					pkgrel=1
 | 
				
			||||||
arch=('x86_64')
 | 
					arch=('x86_64')
 | 
				
			||||||
url="https://github.com/Vomitblood/$_gitname"
 | 
					url="https://github.com/Vomitblood/$_gitname"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,7 @@
 | 
				
			||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# TODO: check for rust dependency
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# create a directory structure that mirrors tha final structure of the installed package
 | 
					# create a directory structure that mirrors tha final structure of the installed package
 | 
				
			||||||
mkdir -p pokerust/DEBIAN
 | 
					mkdir -p pokerust/DEBIAN
 | 
				
			||||||
mkdir -p pokerust/usr/bin
 | 
					mkdir -p pokerust/usr/bin
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue