From e7fcd38f2c28122cccc54f17b4220a24808df22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Sat, 30 Mar 2024 08:26:21 +0100 Subject: [PATCH] ci: pages --- .github/workflows/pages.yml | 48 +++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 14218f8..bac02b8 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -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