Skip to content

Commit faea172

Browse files
rhryckewicznbehrens-bz
authored andcommitted
Push to artifactory and other package updates
1 parent 07f41dd commit faea172

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212
- 7.x # TODO: This is temporary and will be removed once we merge this branch to master branch
1313

1414
env:
15-
PYTHON_DEFAULT_VERSION: 3.8
1615
OUTPUT_DIR: $GITHUB_WORKSPACE/build/outputs
1716
OUTPUT_ZIP: b2-sdk-build-${GITHUB_RUN_NUMBER}.zip
1817
BUILD_NUMBER: ${{ github.run_number }}
@@ -23,7 +22,7 @@ env:
2322

2423
jobs:
2524
build:
26-
runs-on: ubuntu-latest
25+
runs-on: self-hosted
2726
steps:
2827
- uses: actions/checkout@v4
2928
with:
@@ -38,16 +37,14 @@ jobs:
3837
- name: Setup Gradle
3938
uses: gradle/actions/setup-gradle@v4
4039

41-
- name: Set up Python ${{ env.PYTHON_DEFAULT_VERSION }}
42-
uses: actions/setup-python@v5
43-
with:
44-
python-version: ${{ env.PYTHON_DEFAULT_VERSION }}
45-
46-
- name: Install dependencies
40+
- name: Set up Python
4741
run: |
42+
python3.8 -m venv env
43+
source env/bin/activate
44+
echo "VIRTUAL ENV:" $VIRTUAL_ENV
4845
# upgrade pip and setuptools so that b2 CLI can be properly installed
49-
python -m pip install --upgrade pip setuptools
50-
python -m pip install b2
46+
pip install --upgrade pip setuptools
47+
pip install b2 pysqlite3
5148
5249
- name: Build the distribution
5350
run: |
@@ -76,8 +73,10 @@ jobs:
7673
- name: Upload to b2
7774
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/api-v2' || github.ref == 'refs/heads/7.x'
7875
# upload to b2 (if credentials are provided, as they will be for backblaze's builds, but not pull requests)
79-
# This should be using python 3.4
80-
run: $GITHUB_WORKSPACE/maybe_upload_build_results ${{ env.OUTPUT_ZIP }}
76+
# This should be using python 3.8
77+
run: |
78+
source $GITHUB_WORKSPACE/env/bin/activate
79+
$GITHUB_WORKSPACE/maybe_upload_build_results ${{ env.OUTPUT_ZIP }}
8180
8281
- name: Check GitHub Pages status
8382
if: github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)