-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1.02 KB
/
apt-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: AptCI
on: [push,workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install sudo
run: |
if [ "${{ env.ACT }}" = "true" ]; then
apt-get update
apt-get install -y sudo
fi
- name: Install wget
run: |
sudo apt-get update
sudo apt-get install -y wget
- name: Set MULLE_HOSTNAME
run: |
name="${GITHUB_REF##*/}"
MULLE_HOSTNAME="${MULLE_HOSTNAME:-ci-${name##*-}}"
echo "MULLE_HOSTNAME=${MULLE_HOSTNAME}" >> $GITHUB_ENV
- name: Dump Environment
run: env | sort
- name: Install prerelease
if: ${{ env.MULLE_HOSTNAME == 'ci-prerelease' }}
run: |
wget -qO - https://raw.githubusercontent.com/MulleFoundation/foundation-developer/prerelease/bin/apt-installer | sudo sh
- name: Install release
if: ${{ env.MULLE_HOSTNAME != 'ci-prerelease' }}
run: |
wget -qO - https://raw.githubusercontent.com/MulleFoundation/foundation-developer/release/bin/apt-installer | sudo sh