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

linux pyrelease aarch64 path to pyultima manifest. Also removing unus… #191

Merged
merged 1 commit into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
183 changes: 6 additions & 177 deletions .github/workflows/publish-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
fi
target: aarch64
manylinux: manylinux_2_28 # auto doesn't work see https://github.com/briansmith/ring/issues/1728#issuecomment-1758180655
args: --release --out dist
args: --release --out dist --manifest-path pyultima/Cargo.toml

- name: Upload wheels
uses: actions/upload-artifact@v3
Expand All @@ -69,9 +69,11 @@ jobs:
target: [x86_64, x86, armv7, i686, ppc64le]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# TODO Remove if not needed
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ env.PYTHON_VERSION }}

- name: Install Node
run: npm install
Expand All @@ -80,11 +82,6 @@ jobs:
- name: Build Node
run: npm run build
working-directory: frontend

# - uses: awalsh128/cache-apt-pkgs-action@v1
# with:
# packages: musl-tools # provides musl-gcc
# version: 1.0

- name: Build wheels
uses: PyO3/maturin-action@v1
Expand Down Expand Up @@ -224,171 +221,3 @@ jobs:
with:
command: upload
args: --non-interactive --skip-existing *

# name: Create Python release

# #on:
# # release:
# # types: [published]

# on:
# push:
# tags: ['py*.*.*']

# env:
# RUST_TOOLCHAIN: stable
# PYTHON_VERSION: '3.9'
# MATURIN_VERSION: '1.2.1'

# defaults:
# run:
# shell: bash

# jobs:
# manylinux-x64_64:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ env.PYTHON_VERSION }}

# - name: Install tools
# run: |
# sudo apt update
# sudo apt install -y pkg-config libssl-dev

# - name: Setup node
# uses: actions/setup-node@v1
# with:
# node-version: "16.x"

# - name: Install Node
# run: npm install
# working-directory: frontend

# - name: Build Node
# run: npm run build
# working-directory: frontend

# - name: Publish wheel
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
# RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma
# with:
# rust-toolchain: ${{ env.RUST_TOOLCHAIN }}
# maturin-version: ${{ env.MATURIN_VERSION }}
# command: publish
# args: -m pyultima/Cargo.toml --all-features --skip-existing -o wheels -u anatoly.bugakov

# # Needed for Docker on Apple M1
# manylinux-aarch64:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ env.PYTHON_VERSION }}

# - name: Install tools
# run: |
# sudo apt-get update
# sudo apt-get install -y pkg-config libssl-dev

# - name: Setup node
# uses: actions/setup-node@v1
# with:
# node-version: "16.x"

# - name: Install Node
# run: npm install
# working-directory: frontend

# - name: Build Node
# run: npm run build
# working-directory: frontend

# - name: Publish wheel
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
# JEMALLOC_SYS_WITH_LG_PAGE: 16
# with:
# rust-toolchain: ${{ env.RUST_TOOLCHAIN }}
# target: aarch64-unknown-linux-gnu
# maturin-version: ${{ env.MATURIN_VERSION }}
# command: publish
# args: -m pyultima/Cargo.toml --all-features --skip-existing --no-sdist -o wheels -i python -u anatoly.bugakov

# win-macos:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [macos-latest, windows-latest]
# env:
# OPENSSL_NO_VENDOR: 1

# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ env.PYTHON_VERSION }}

# - name: Install OpenSSL (Windows)
# if: runner.os == 'Windows'
# shell: powershell
# run: |
# echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
# vcpkg install openssl:x64-windows-static-md

# - name: Setup node
# uses: actions/setup-node@v1
# with:
# node-version: "16.x"

# - name: Install Node
# run: npm install
# working-directory: frontend

# - name: Build Node
# run: npm run build
# working-directory: frontend

# - name: Publish wheel
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
# RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+sse4.1,+sse4.2
# with:
# rust-toolchain: ${{ env.RUST_TOOLCHAIN }}
# maturin-version: ${{ env.MATURIN_VERSION }}
# command: publish
# args: -m pyultima/Cargo.toml --all-features --no-sdist --skip-existing -o wheels -i python -u anatoly.bugakov

# This job fails - understand/check why
# macos-aarch64:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ env.PYTHON_VERSION }}
#
# - name: Set up Rust
# uses: dtolnay/rust-toolchain@master
# with:
# toolchain: nightly-2022-12-20
#
# - name: Set up Rust targets
# run: rustup target add aarch64-apple-darwin
#
# - name: Publish wheel
# uses: messense/maturin-action@v1
# env:
# MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
# with:
# maturin-version: ${{ env.MATURIN_VERSION }}
# command: publish
# args: -m pyultima/Cargo.toml --all-features --target aarch64-apple-darwin --no-sdist -o wheels -i python -u anatoly.bugakov
3 changes: 0 additions & 3 deletions template_drivers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ log = "0.4"
pretty_env_logger = "0.4"
tokio = { version = "1.21.0", features = ["full"] }
actix-web = "4"
actix-files = "0.6.2"
tracing = { version = "0.1", features = ["log"] }
uuid = { version = "1.1.2", features = ["v4"] }
# Errors
thiserror = "1"
anyhow = "1"
Expand All @@ -35,7 +33,6 @@ toml = { workspace = true }
mimalloc = { version = "0.1.29", default-features = false }
dotenv = "0.15"
clap = { version = "4", features = ["derive"] }
actix-web-httpauth = "0.8.0"
actix-web-static-files = "4.0"
static-files = "0.2.1"

Expand Down
2 changes: 1 addition & 1 deletion ultibi/ultibi_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ futures = { version = "0.3", optional = true }
#Cache
dashmap = { workspace = true }
# Open API Swagger
quote = "1.0.26" # Needs to be specified for utoipa to build
# TODO remove if compiles without quote = "1.0.26" # Needs to be specified for utoipa to build
utoipa = { version="4.1.0", optional = true} # TODO change to version
# DB
connectorx = {git="https://github.com/AnatolyBuga/connector-x", branch = "arrow49", features=["dst_arrow", "src_mysql"], optional = true}
Expand Down
2 changes: 1 addition & 1 deletion ultibi/ultibi_core/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//pub use super::*;
#![allow(unused_imports)]
pub use super::datarequest::*;
pub use super::dataset::*;
pub use super::execution::*;
Expand Down
Loading