Browse Source

remove duplicated common bootstrap, working-directory does nothing

Signed-off-by: falkTX <falktx@falktx.com>
pull/19/head
falkTX 3 years ago
parent
commit
baf0c65453
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 5 additions and 50 deletions
  1. +0
    -47
      .github/workflows/bootstrap-common.yml
  2. +5
    -3
      .github/workflows/bootstrap-plugins.yml

+ 0
- 47
.github/workflows/bootstrap-common.yml View File

@@ -1,47 +0,0 @@
name: bootstrap-common

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
env:
DEBIAN_FRONTEND: noninteractive
HOMEBREW_NO_AUTO_UPDATE: 1

jobs:
# linux native build
linux:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up cache
uses: actions/cache@v2
with:
path: |
~/PawPawBuilds/builds
~/PawPawBuilds/debs
~/PawPawBuilds/downloads
~/PawPawBuilds/targets
key: bootstrap-common-linux
- name: Restore debian package cache
run: |
if [ -d ~/PawPawBuilds/debs ] && [ "$(ls ~/PawPawBuilds/debs | wc -l)" -ne 0 ]; then \
sudo cp ~/PawPawBuilds/debs/*.deb /var/cache/apt/archives/; \
fi
- name: Set up dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -yq build-essential curl cmake jq meson
# extra, for using system libraries
sudo apt-get install -yq libglib2.0-dev
- name: Cache debian packages
run: |
mkdir -p ~/PawPawBuilds/debs
sudo mv /var/cache/apt/archives/*.deb ~/PawPawBuilds/debs/
- name: Bootstrap Linux native
shell: bash
run: |
./bootstrap-common.sh linux && ./.cleanup.sh linux

+ 5
- 3
.github/workflows/bootstrap-plugins.yml View File

@@ -88,10 +88,12 @@ jobs:
name: bootstrap-common-linux name: bootstrap-common-linux
path: ~/PawPawBuilds path: ~/PawPawBuilds
- name: Display structure of downloaded files - name: Display structure of downloaded files
run: ls -R ~/PawPawBuilds
run: ls ~/PawPawBuilds
- name: Extract downloaded artifact - name: Extract downloaded artifact
run: tar xf bootstrap-common-linux.tar.gz
working-directory: ~/PawPawBuilds
shell: bash
run: |
cd ~/PawPawBuilds && \
tar xf bootstrap-common-linux.tar.gz
- name: Display structure of downloaded files - name: Display structure of downloaded files
run: find ~/PawPawBuilds run: find ~/PawPawBuilds
- name: Bootstrap Linux native - name: Bootstrap Linux native


Loading…
Cancel
Save