Skip to content

Commit

Permalink
Add a Github action to build the Application Server
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy authored and davidjwbbc committed Jan 23, 2024
1 parent 1e88173 commit 469a86e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Application Server

on:
push:
branches: [ development ]
schedule:
- cron: '0 0 * * 0' # Executes every Sunday at midnight UT
jobs:
ubuntu-build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '>=3.7.0'
check-latest: true
- name: Install dependencies
run: |
sudo apt update
sudo apt install wget default-jdk
python -m pip install --upgrade pip build setuptools
- name: Install OpenResty
uses: leafo/gh-actions-openresty@v1
with:
buildCache: true
- name: Add OpenResty to PATH
run: |
PATH="/usr/local/openresty/nginx/sbin:$PATH" export PATH
- name: Build package
run: python3 -m pip install .
- name: Run Application Server
run: |
5gms-application-server -h

0 comments on commit 469a86e

Please sign in to comment.