Skip to content

Commit

Permalink
build in container
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Aug 31, 2024
1 parent 2439dda commit dea678b
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions .github/workflows/package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,40 @@ jobs:
build:
name: Build Python Wheel
runs-on: ubuntu-latest
container:
image: debian:11
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
# - uses: actions/checkout@master
# - 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: Create virtualenv
run: >-
python3 -m venv venv
- name: Activate virtualenv
run: |
. venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Install python deps to venv
run: >-
pip install build wheel setuptools
- name: Echo Build Wheel Command
run: echo "${{ inputs.cmd }}"
Expand Down

0 comments on commit dea678b

Please sign in to comment.