Update mulle-sde-ci.yml #64
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: 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 |