Skip to content
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

Add endpoint to run git fetch on outpack root #59

Merged
merged 7 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
41 changes: 26 additions & 15 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ jobs:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, target: 'x86_64'}
- {os: ubuntu-latest, target: 'x86'}
- {os: ubuntu-latest, target: 'aarch64'}
- {os: windows-latest, target: 'x64'}
- {os: windows-latest, target: 'x86'}
- {os: macos-latest, target: 'x86_64'}
- {os: macos-latest, target: 'aarch64'}
- { os: ubuntu-latest, target: 'x86_64' }
- { os: ubuntu-latest, target: 'x86' }
- { os: ubuntu-latest, target: 'aarch64' }
- { os: windows-latest, target: 'x64' }
- { os: windows-latest, target: 'x86' }
- { os: macos-latest, target: 'x86_64' }
- { os: macos-latest, target: 'aarch64' }

runs-on: ${{ matrix.config.os }}
name: Build wheels for ${{ matrix.config.os }} (${{ matrix.config.target }})
Expand All @@ -82,8 +82,19 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.config.target }}
args: --release --out dist
args: --release --out dist --features openssl-vendored
manylinux: manylinux2014
before-script-linux: |
# If we're running on RHEL centos, install needed packages.
if command -v yum &> /dev/null; then
yum update -y && yum install -y perl-core libatomic

# If we're running on i686 we need to symlink libatomic
# in order to build openssl with -latomic flag.
if [[ ! -d "/usr/lib64" ]]; then
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
fi
fi
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand All @@ -107,10 +118,10 @@ jobs:
# This permission is needed for the workflow to authenticate against PyPI
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-artifacts
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-artifacts
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
117 changes: 117 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ tokio-util = { version = "0.7.10", features = ["io"] }
futures = "0.3.30"
tower = "0.4.13"
mime = "0.3.17"
git2 = { version = "0.18.2" }

[dev-dependencies]
assert_cmd = "2.0.6"
Expand All @@ -46,6 +47,8 @@ tar = "0.4.38"
chrono = "0.4.33"
rand = "0.8.5"
tracing-capture = "0.1.0"
git-utils = { path = "git-utils" }

[features]
python = [ "dep:pyo3" ]
python = ["dep:pyo3"]
openssl-vendored = ["git2/vendored-openssl"]
3 changes: 3 additions & 0 deletions git-utils/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/target
/dist
.idea
Loading
Loading