Created
July 29, 2020 10:14
-
-
Save jlengrand/74f0f5922105dd9410278e8a4533616f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Maven | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Install all and build with Maven | |
run: | | |
sudo apt-get install build-essential gawk gcc g++ gfortran git texinfo bison libncurses-dev; | |
wget -nv https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%208.3.0/Raspberry%20Pi%202%2C%203/cross-gcc-8.3.0-pi_2-3.tar.gz/download; | |
tar xf download; | |
export LD_LIBRARY_PATH=/home/runner/work/cellar-driver/cellar-driver/cross-pi-gcc-8.3.0-1/lib:$LD_LIBRARY_PATH | |
export PATH=/home/runner/work/cellar-driver/cellar-driver/cross-pi-gcc-8.3.0-1/bin:$PATH; | |
mvn -B deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: package | |
run: mkdir staging && cp target/*.jar staging && cp src/main/resources/libs/raspberry/* staging | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: Package | |
path: staging |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment