Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
telmomarques committed Apr 26, 2020
1 parent eb2d011 commit 084c066
Showing 1 changed file with 53 additions and 52 deletions.
105 changes: 53 additions & 52 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,67 +17,68 @@ jobs:

steps:

- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(env) }}
run: echo "$GITHUB_CONTEXT"
- name: Checkout source code
uses: actions/checkout@v2

# - name: Checkout source code
# uses: actions/checkout@v2
- name: Add ARM architecture to APT
run: sudo dpkg --add-architecture armhf

# - name: Add ARM architecture to APT
# run: sudo dpkg --add-architecture armhf
- name: Setup APT repositories for ARM
run: sudo mv sources.list /etc/apt/sources.list

# - name: Setup APT repositories for ARM
# run: sudo mv sources.list /etc/apt/sources.list
- name: Update APT repositories
run: sudo apt-get update

# - name: Update APT repositories
# run: sudo apt-get update
- name: Install ARM cross compiler
run: sudo apt-get -y install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf

# - name: Install ARM cross compiler
# run: sudo apt-get -y install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
- name: Install dependencies
run: sudo apt-get -y install libssl-dev:armhf

# - name: Install dependencies
# run: sudo apt-get -y install libssl-dev:armhf
- name: Generate makefiles for ARM
run: ./genMakefiles armlinux2

# - name: Generate makefiles for ARM
# run: ./genMakefiles armlinux2
- name: Compile
run: make

# - name: Compile
# run: make
- name: Upload Build Artifacts
uses: actions/upload-artifact@v1
with:
name: rtpserver
path: rtspserver/rtspserver

# - name: Release (pre-release)
# if: env.isReleaseCandidate == 'true'
# uses: ncipollo/release-action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# prerelease: true
# artifacts: rtspserver/rtspserver
- name: Release (pre-release)
if: env.isReleaseCandidate == 'true'
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
artifacts: rtspserver/rtspserver

# - name: Update latest-rc tag
# if: env.isReleaseCandidate == 'true'
# uses: ncipollo/release-action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# tag: latest-rc
# allowUpdates: true
# replacesArtifacts: true
# prerelease: true
# artifacts: rtspserver/rtspserver
- name: Update latest-rc tag
if: env.isReleaseCandidate == 'true'
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: latest-rc
allowUpdates: true
replacesArtifacts: true
prerelease: true
artifacts: rtspserver/rtspserver

# - name: Release (final)
# if: env.isFinalRelease == 'true'
# uses: ncipollo/release-action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# artifacts: rtspserver/rtspserver
- name: Release (final)
if: env.isFinalRelease == 'true'
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: rtspserver/rtspserver

# - name: Update latest tag
# if: env.isFinalRelease == 'true'
# uses: ncipollo/release-action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# tag: latest
# allowUpdates: true
# replacesArtifacts: true
# artifacts: rtspserver/rtspserver
- name: Update latest tag
if: env.isFinalRelease == 'true'
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: latest
allowUpdates: true
replacesArtifacts: true
artifacts: rtspserver/rtspserver

0 comments on commit 084c066

Please sign in to comment.