1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-11-21 22:21:05 +01:00

ci: pages

This commit is contained in:
Jozef Steinhübl 2024-03-30 08:26:21 +01:00
parent 24787e32e9
commit e7fcd38f2c

View file

@ -72,12 +72,12 @@ jobs:
matrix:
config:
- { arch: x86_64, host: x86_64, libc: glibc, platform: linux/amd64, test: 1 }
- { arch: i686, host: i686, libc: glibc, platform: linux/386, test: 1 }
- { arch: aarch64, host: x86_64, libc: glibc, platform: linux/amd64, test: 0 }
- { arch: armv7l, host: x86_64, libc: glibc, platform: linux/amd64, test: 0 }
- { arch: x86_64-musl, host: x86_64-musl, libc: musl, platform: linux/amd64, test: 1 }
- { arch: armv6l-musl, host: x86_64-musl, libc: musl, platform: linux/amd64, test: 0 }
- { arch: aarch64-musl, host: x86_64-musl, libc: musl, platform: linux/amd64, test: 0 }
#- { arch: i686, host: i686, libc: glibc, platform: linux/386, test: 1 }
#- { arch: aarch64, host: x86_64, libc: glibc, platform: linux/amd64, test: 0 }
#- { arch: armv7l, host: x86_64, libc: glibc, platform: linux/amd64, test: 0 }
#- { arch: x86_64-musl, host: x86_64-musl, libc: musl, platform: linux/amd64, test: 1 }
#- { arch: armv6l-musl, host: x86_64-musl, libc: musl, platform: linux/amd64, test: 0 }
#- { arch: aarch64-musl, host: x86_64-musl, libc: musl, platform: linux/amd64, test: 0 }
steps:
- name: Prepare container
@ -91,7 +91,12 @@ jobs:
xbps-install -yu
- name: Clone and checkout
uses: classabbyamp/treeless-checkout-action@v1
uses: actions/checkout@v4
with:
submodules: true
filter: tree:0
fetch-depth: 0
- name: Create hostrepo and prepare masterdir
run: |
ln -s "$(pwd)" /hostrepo &&
@ -112,6 +117,22 @@ jobs:
echo "sources"
ls hostdir/sources
- name: Build apindex
run: |
cd apindex
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/tmp/apindex
make install
- name: Generate index.html
run: cd hostdir/binpkgs && /tmp/apindex/bin/apindex .
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: hostdir/binpkgs
- name: Show files
run: |
(
@ -143,3 +164,16 @@ jobs:
cd /
"$here/common/travis/check-install.sh" "$BOOTSTRAP" "$ARCH"
)
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2