mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-11-22 06:31:05 +01:00
ci: pages
This commit is contained in:
parent
24787e32e9
commit
e7fcd38f2c
1 changed files with 41 additions and 7 deletions
48
.github/workflows/pages.yml
vendored
48
.github/workflows/pages.yml
vendored
|
@ -72,12 +72,12 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- { arch: x86_64, host: x86_64, libc: glibc, platform: linux/amd64, test: 1 }
|
- { 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: i686, host: i686, libc: glibc, platform: linux/386, test: 1 }
|
||||||
- { arch: aarch64, host: x86_64, libc: glibc, platform: linux/amd64, test: 0 }
|
#- { 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: 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: 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: 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: aarch64-musl, host: x86_64-musl, libc: musl, platform: linux/amd64, test: 0 }
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare container
|
- name: Prepare container
|
||||||
|
@ -91,7 +91,12 @@ jobs:
|
||||||
xbps-install -yu
|
xbps-install -yu
|
||||||
|
|
||||||
- name: Clone and checkout
|
- 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
|
- name: Create hostrepo and prepare masterdir
|
||||||
run: |
|
run: |
|
||||||
ln -s "$(pwd)" /hostrepo &&
|
ln -s "$(pwd)" /hostrepo &&
|
||||||
|
@ -112,6 +117,22 @@ jobs:
|
||||||
echo "sources"
|
echo "sources"
|
||||||
ls hostdir/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
|
- name: Show files
|
||||||
run: |
|
run: |
|
||||||
(
|
(
|
||||||
|
@ -143,3 +164,16 @@ jobs:
|
||||||
cd /
|
cd /
|
||||||
"$here/common/travis/check-install.sh" "$BOOTSTRAP" "$ARCH"
|
"$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
|
||||||
|
|
Loading…
Reference in a new issue