diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 83279ba6da9..ce8ad0a83a3 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -1,5 +1,10 @@ name: Crate Artifacts on: workflow_dispatch + +env: + OPENSSL_INCLUDE_DIR: /usr/local/ssl/include + OPENSSL_LIB_DIR: /usr/local/ssl/lib + jobs: create_artifacts: runs-on: ubuntu-latest @@ -9,7 +14,7 @@ jobs: with: toolchain: stable - name: Install musl tools. - run: sudo apt-get install -y musl-tools + run: sudo apt-get install -y musl-tools libssl-dev pkg-config - name: Build in unknown linux run: ./scripts/release_tar.sh x86_64-unknown-linux-musl - name: Archive artifacts diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c2bd35de99a..ec841c12854 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,6 +4,10 @@ on: tags: - "v*" +env: + OPENSSL_INCLUDE_DIR: /usr/local/ssl/include + OPENSSL_LIB_DIR: /usr/local/ssl/lib + jobs: release: name: Publish for ${{ matrix.os }} @@ -25,7 +29,7 @@ jobs: run: | if [ "${{ matrix.target }}" == "x86_64-unknown-linux-musl" ] then - sudo apt-get install -y musl-tools + sudo apt-get install -y musl-tools libssl-dev pkg-config fi - name: Build in ${{ matrix.target }} run: ./scripts/release_tar.sh ${{ matrix.target }} diff --git a/Cargo.toml b/Cargo.toml index 2c1f86d2099..fed087946ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -109,6 +109,7 @@ num-bigint = { version = "0.4.5", default-features = false } num-integer = "0.1.46" num-traits = { version = "0.2.19", default-features = false } once_cell = "1.19.0" +openssl = { version = "0.10", features = ["vendored"] } parity-scale-codec = { version = "3.6.9", default-features = false, features = ["derive"] } path-clean = "1.0.1" pretty_assertions = "1.4.0" diff --git a/scripts/release_crates.sh b/scripts/release_crates.sh index f9e16fcc7d4..ee051bb23b6 100755 --- a/scripts/release_crates.sh +++ b/scripts/release_crates.sh @@ -1,22 +1,22 @@ -cargo publish --package cairo-lang-utils && - cargo publish --package cairo-lang-test-utils && - cargo publish --package cairo-lang-casm && +# cargo publish --package cairo-lang-utils && cargo publish --package cairo-lang-debug && cargo publish --package cairo-lang-proc-macros && - cargo publish --package cairo-lang-eq-solver && cargo publish --package cairo-lang-filesystem && cargo publish --package cairo-lang-diagnostics && + cargo publish --package cairo-lang-syntax && + cargo publish --package cairo-lang-syntax-codegen && + cargo publish --package cairo-lang-parser && + cargo publish --package cairo-lang-defs && + cargo publish --package cairo-lang-formatter && + cargo publish --package cairo-lang-test-utils && + cargo publish --package cairo-lang-casm && + cargo publish --package cairo-lang-eq-solver && cargo publish --package cairo-lang-project && cargo publish --package cairo-lang-sierra && cargo publish --package cairo-lang-sierra-type-size && cargo publish --package cairo-lang-sierra-ap-change && cargo publish --package cairo-lang-sierra-gas && cargo publish --package cairo-lang-sierra-to-casm && - cargo publish --package cairo-lang-syntax && - cargo publish --package cairo-lang-syntax-codegen && - cargo publish --package cairo-lang-parser && - cargo publish --package cairo-lang-defs && - cargo publish --package cairo-lang-formatter && cargo publish --package cairo-lang-plugins && cargo publish --package cairo-lang-semantic && cargo publish --package cairo-lang-lowering &&