Skip to content

Commit

Permalink
[Actions] Apply latest findings from Dockerfile to Github Action.
Browse files Browse the repository at this point in the history
Signed-off-by: Juri Berlanda <[email protected]>
  • Loading branch information
j-be committed May 20, 2020
1 parent 15a726d commit 01d383f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build-armhf:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@master
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install additional libraries
run: |
sudo apt-get update || true
sudo apt-get install libsasl2-modules-gssapi-mit:armhf libpq-dev:armhf
sudo apt-get install libsasl2-modules-gssapi-mit:armhf libpq5:armhf libpq5:amd64 libpq-dev:amd64
- name: Create cached directory
run: |
Expand All @@ -58,7 +58,11 @@ jobs:
- name: Build
run: |
cd streamium-server
cargo build --target=armv7-unknown-linux-gnueabihf --release || sudo apt-get install libpq-dev:amd64 && cargo build --target=armv7-unknown-linux-gnueabihf --release || sudo apt-get install libpq-dev:armhf && cargo build --target=armv7-unknown-linux-gnueabihf --release
cargo build --target=armv7-unknown-linux-gnueabihf --release
sudo apt-get purge libpq-dev:amd64
sudo apt-get autoremove
sudo apt-get install libpq-dev:armhf
cargo build --target=armv7-unknown-linux-gnueabihf --release
- name: Upload binary
uses: actions/upload-artifact@v1
Expand Down

0 comments on commit 01d383f

Please sign in to comment.