diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9e264f..40ca50a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,8 @@ jobs: - pre-commit with: kind: "${{ inputs.kind }}" - cmd: "${{ inputs.package_command }}" + cmd: python -m build + #cmd: "${{ inputs.package_command }}" test: name: Test diff --git a/.github/workflows/package-action.yml b/.github/workflows/package-action.yml index 63fd03b..44fbfb6 100644 --- a/.github/workflows/package-action.yml +++ b/.github/workflows/package-action.yml @@ -26,39 +26,61 @@ jobs: build: name: Build Python Wheel runs-on: ubuntu-latest + container: + image: debian:11 +# volumes: +# - ${{ github.workspace }}:/src outputs: version: ${{ steps.version.outputs.version }} steps: - uses: actions/checkout@master - - name: Set up Python 3.10 - uses: actions/setup-python@v4 - with: - python-version: "3.10" - - name: Install pypa/build - run: >- - python -m - pip install - build - --user - - name: Install pypa/pkginffo +# - name: Set up Python 3.10 +# uses: actions/setup-python@v4 +# with: +# python-version: "3.10" + + - name: Update Apt run: >- - python -m - pip install - pkginfo - --user + apt-get update - name: Install dependencies run: >- - sudo apt-get install -y gcc python3 + apt-get install -y gcc python3 python3-pip python3-venv flex make texinfo unzip help2man gawk libtool-bin libncurses5-dev - bison wget rsync + bison wget rsync git + +# - name: Change dir to source directory +# run: | +# cd /src + + - name: Create virtualenv + run: >- + python3 -m venv venv + + - name: Activate virtualenv + run: | + . venv/bin/activate + echo PATH=$PATH >> $GITHUB_ENV + + - name: Python Version + run: >- + python3 --version + + - name: Install python deps to venv + run: >- + pip install build wheel setuptools + + - name: List directory + run: | + ls -lah . - name: Echo Build Wheel Command run: echo "${{ inputs.cmd }}" - name: Build Wheel - run: "${{ inputs.cmd }}" + run: | + ${{ inputs.cmd }} - name: Python Build Artifact uses: actions/upload-artifact@v3 @@ -67,6 +89,7 @@ jobs: name: dist path: dist/* retention-days: 5 + - name: Read Version run: >- python3