Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 59 additions & 59 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,67 +10,67 @@ on:
jobs:


Docs:
name: '📓 Docs'
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
# Docs:
# name: '📓 Docs'
# if: github.event_name != 'pull_request'
# runs-on: ubuntu-latest
# steps:

- name: '🧰 Checkout'
uses: actions/checkout@v3
# - name: '🧰 Checkout'
# uses: actions/checkout@v3

- name: 🛠️ Get bib files from umarcor/umarcor
run: |
make -C docs references
ls -la docs/references
# - name: 🛠️ Get bib files from umarcor/umarcor
# run: |
# make -C docs references
# ls -la docs/references

- name: '📓 BuildTheDocs (BTD)'
uses: buildthedocs/btd@v0
with:
token: ${{ github.token }}
skip-deploy: github.event_name == 'pull_request'
# - name: '📓 BuildTheDocs (BTD)'
# uses: buildthedocs/btd@v0
# with:
# token: ${{ github.token }}
# skip-deploy: github.event_name == 'pull_request'

- name: '📤 Upload artifact: HTML'
uses: actions/upload-artifact@v3
with:
name: docs
path: docs/_build/html
# - name: '📤 Upload artifact: HTML'
# uses: actions/upload-artifact@v3
# with:
# name: docs
# path: docs/_build/html


Release:
runs-on: ubuntu-latest
env:
QUS_RELEASE: 1
BUILD: debian
steps:
# Release:
# runs-on: ubuntu-latest
# env:
# QUS_RELEASE: 1
# BUILD: debian
# steps:

- uses: actions/checkout@v3
# - uses: actions/checkout@v3

- run: ./.github/setup.sh
# - run: ./.github/setup.sh

- run: |
./run.sh -a
./generate_bin_tests.sh
cp test-* releases/
ls releases/ | wc -l
# - run: |
# ./run.sh -a
# ./generate_bin_tests.sh
# cp test-* releases/
# ls releases/ | wc -l

- run: ./cli/cli.py debian
# - run: ./cli/cli.py debian

- uses: pyTooling/Actions/releaser@r0
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
with:
token: ${{ github.token }}
files: releases/*
snapshots: false
# - uses: pyTooling/Actions/releaser@r0
# if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
# with:
# token: ${{ github.token }}
# files: releases/*
# snapshots: false

- run: ./cli/cli.py assets
# - run: ./cli/cli.py assets

- name: '📤 Upload artifact: builddir'
uses: actions/upload-artifact@v3
with:
path: |
debian.md
report.md
# - name: '📤 Upload artifact: builddir'
# uses: actions/upload-artifact@v3
# with:
# path: |
# debian.md
# report.md


Images:
Expand All @@ -79,7 +79,7 @@ jobs:
matrix:
src:
- debian
- fedora
# - fedora
arch:
- x86_64
- i686
Expand Down Expand Up @@ -117,16 +117,16 @@ jobs:
env:
BASE_ARCH: ${{ matrix.arch }}

- name: Deploy to DockerHub
if: github.event_name != 'pull_request' && github.repository == 'dbhi/qus'
uses: pyTooling/Actions/with-post-step@r0
with:
main: |
# Release
echo '${{ secrets.DOCKER_PASS }}' | docker login docker.io -u '${{ secrets.DOCKER_USER }}' --password-stdin
docker image ls
docker push -a aptman/qus
post: docker logout docker.io
# - name: Deploy to DockerHub
# if: github.event_name != 'pull_request' && github.repository == 'dbhi/qus'
# uses: pyTooling/Actions/with-post-step@r0
# with:
# main: |
# # Release
# echo '${{ secrets.DOCKER_PASS }}' | docker login docker.io -u '${{ secrets.DOCKER_USER }}' --password-stdin
# docker image ls
# docker push -a aptman/qus
# post: docker logout docker.io


Manifests:
Expand Down
4 changes: 2 additions & 2 deletions cli/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ versions:

default: &ver_def
debian: &ver_debian_def
base: "7.2"
rev: "+dfsg-5"
base: "10.0.2"
rev: "+ds-1"
fedora: &ver_fedora_def
base: "7.2.0"
rev: "7.fc39"
Expand Down
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ build () {
done
;;
debian)
PACKAGE_URI=${PACKAGE_URI:-http://ftp.debian.org/debian/pool/main/q/qemu/qemu-user-static_${VERSION}${SOURCE_VERSION}_${BARCH}.deb}
PACKAGE_URI=${PACKAGE_URI:-http://ftp.debian.org/debian/pool/main/q/qemu/qemu-user_${VERSION}${SOURCE_VERSION}_${BARCH}.deb}
gstart "Extract $PACKAGE_URI"
curl -fsSL "$PACKAGE_URI" | dpkg --fsys-tarfile - | tar xvf - --wildcards ./usr/bin/qemu-*-static --strip-components=3
curl -fsSL "$PACKAGE_URI" | dpkg --fsys-tarfile - | tar xvf - --wildcards ./usr/bin/qemu-* --strip-components=3
gend
;;
esac
Expand Down