-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: add debianize build pipeline #176
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Debian Continuous Delivery | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
b2-upload-bucket: | ||
required: true | ||
type: string | ||
|
||
env: | ||
PYTHON_DEFAULT_VERSION: "3.11" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. debian is probably decades away from supporting this python, I assume that's not a problem? like maybe some things here pass even though they are syntax errors in the version that debian is gonna use? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 3.11 is actually the default version in the latest Debian. But we run testsuite for all the supported Python versions (3.7+), so if anything would be misbehaving we'd find out there, no? |
||
|
||
jobs: | ||
build-deb: | ||
env: | ||
# dont run tests in Debian build, we ran them already | ||
DEB_BUILD_OPTIONS: nocheck | ||
B2_APPLICATION_KEY_ID: '${{ secrets.B2_DEBIAN_APPLICATION_KEY_ID }}' | ||
B2_APPLICATION_KEY: '${{ secrets.B2_DEBIAN_APPLICATION_KEY }}' | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_DEFAULT_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: python -m pip install -U wheel b2 | ||
|
||
- uses: jtdor/build-deb-action@v1 | ||
with: | ||
buildpackage-opts: --build=binary | ||
|
||
- name: Upload to B2 | ||
working-directory: debian/artifacts | ||
run: | | ||
ls -1 *.deb | xargs -I {} b2 upload_file ${{ inputs.b2-upload-bucket }} {} {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's skip this step if vars are missing