Skip to content

Add a shell-wrapper file #33

Add a shell-wrapper file

Add a shell-wrapper file #33

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: freedesktopsdk/sdk:20.08-x86_64
steps:
- uses: actions/checkout@v2
- name: Build and install
env:
FLATPAK_ID: com.example.DummyEditor
run: |
set -e
meson \
--prefix=$(pwd)/ide-wrapper-build \
-Deditor_binary=/bin/echo \
-Deditor_args='["--some-option"]' \
-Deditor_title='Test dummy editor' \
-Dprogram_name=dummy-editor \
-Dflagfile_prefix=dummy \
build
ninja -C build
ninja -C build install
- uses: actions/upload-artifact@v2
with:
name: ide-wrapper-build
path: ide-wrapper-build
- name: Install shellcheck
run: |
set -e -o pipefail
shopt -s failglob
read -r shellcheck_tarball_url < <(
curl -L https://api.github.com/repos/koalaman/shellcheck/releases/latest | \
jq -r '.assets | map(select(.name | endswith("linux.x86_64.tar.xz"))) | first | .browser_download_url'
)
wget -O - "$shellcheck_tarball_url" | tar -xJf -
install -Dm755 shellcheck-*/shellcheck /usr/local/bin/shellcheck
- name: Run shellcheck
run: |
shellcheck --severity=style ide-wrapper-build/bin/dummy-editor ide-wrapper-build/lib64/ide-flatpak-wrapper/wrapper.sh ide-wrapper-build/bin/shell-wrapper