try workflow build in container #52
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 Basic' | ||
on: | ||
push: | ||
jobs: | ||
build-remix-sunxi: | ||
runs-on: ["self-hosted"] | ||
container: | ||
image: ghcr.io/pantacor/kas/kas:next-v2 | ||
volumes: | ||
- shared:/shared | ||
steps: | ||
- name: chown | ||
run: sudo chown -R builder:builder $RUNNER_WORKSPACE | ||
- name: chowna | ||
run: sudo chown -R builder:builder /__w | ||
- name: shared | ||
run: sudo mkdir -p /shared/sstate && sudo chown builder:builder /shared/sstate && sudo mkdir -p /shared/dldir && sudo chown builder:builder /shared/dldir | ||
- name: Build Kas | ||
run: echo pwd: && pwd && git fetch origin $GITHUB_SHA && git reset --hard $GITHUB_SHA && rm -rf build/ && rm .gitignore && git clean -f -d && rm -rf meta- poky && ls -la && env && kas build .github/configs/sunxi/sunxi-orange-pi-3lts-remix-scarthgap.yaml:.github/configs/shared-vols.yaml | ||
- name: chown | ||
run: sudo chown -R builder:builder $GITHUB_WORKSPACE | ||
- name: chmod | ||
run: sudo chmod -R 777 $GITHUB_WORKSPACE | ||
- name: chmod2 | ||
run: sudo chmod -R 777 /__w/ | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: images | ||
path: | | ||
build/tmp-*/deploy/images/*/*.wic.* | ||