-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Github action to build the Application Server
- Loading branch information
1 parent
1e88173
commit 469a86e
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 | ||