Update README.md #55
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
name: Build and package | |
on: | |
# Triggers the workflow on push or pull request events for the master branch | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup nodejs | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
- name: Install npm 7 | |
run: | | |
npm install -g npm@7 | |
npm --version | |
- name: Run makefile | |
run: | | |
sudo make install_apt_deps | |
make get_nfpm | |
make all | |
- name: Store built packages | |
uses: actions/upload-artifact@v2 | |
with: | |
name: colte-package | |
path: BUILD/colte_*.deb | |
package-install: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Get previously built package | |
uses: actions/download-artifact@v2 | |
with: | |
name: colte-package | |
- name: Add CoLTE public repo | |
run: | | |
echo "deb [signed-by=/usr/share/keyrings/colte-archive-keyring.gpg] http://colte.cs.washington.edu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/colte.list | |
sudo wget -O /usr/share/keyrings/colte-archive-keyring.gpg http://colte.cs.washington.edu/colte-archive-keyring.gpg | |
sudo add-apt-repository ppa:open5gs/latest | |
sudo apt-get update | |
- name: Install CoLTE Package | |
run: | | |
sudo dpkg -i colte_*.deb || /bin/true | |
sudo apt-get install --yes -f |