Skip to content

Commit

Permalink
added github automated build files
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsiomb committed Nov 30, 2022
1 parent e14ef7c commit 9caaf99
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build_freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: FreeBSD build

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:

runs-on: macos-12

steps:
- uses: actions/checkout@v3

- name: FreeBSD build
uses: vmactions/freebsd-vm@v0
with:
prepare: |
pkg install -y git gmake libX11 qt5-core qt5-gui qt5-widgets qt5-buildtools pkgconf
git clone https://github.com/FreeSpacenav/libspnav
cd libspnav
./configure
gmake
gmake install
run: |
./configure
gmake UIC=uic-qt5 MOC=moc-qt5 RCC=rcc-qt5
gmake DESTDIR=spnavcfg-freebsd install
- uses: actions/upload-artifact@v3
with:
name: spnavcfg-freebsd
path: spnavcfg-freebsd

# vi:ts=2 sts=2 sw=2 expandtab:
40 changes: 40 additions & 0 deletions .github/workflows/build_gnulinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: GNU/Linux build

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install qtbase5-dev
git clone https://github.com/FreeSpacenav/libspnav
cd libspnav
./configure
make
sudo make install
- name: configure
run: ./configure

- name: build
run: make

- name: stage install
run: DESTDIR=spnavcfg-gnulinux make install

- uses: actions/upload-artifact@v3
with:
name: spnavcfg-gnulinux
path: spnavcfg-gnulinux

# vi:ts=2 sts=2 sw=2 expandtab:
40 changes: 40 additions & 0 deletions .github/workflows/build_macosx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: MacOS X build

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: install dependencies
run: |
brew install qt@5
brew link qt@5 --force
git clone https://github.com/FreeSpacenav/libspnav
cd libspnav
./configure
make
sudo make install
- name: configure
run: ./configure

- name: build
run: make

- name: stage install
run: DESTDIR=spnavcfg-macosx make install

- uses: actions/upload-artifact@v3
with:
name: spnavcfg-macosx
path: spnavcfg-macosx

# vi:ts=2 sts=2 sw=2 expandtab:

0 comments on commit 9caaf99

Please sign in to comment.