diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 83279ba6da9..5a35a1aefbf 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -1,5 +1,10 @@ name: Crate Artifacts on: workflow_dispatch + +env: + OPENSSL_LIB_DIR: /usr/lib/x86_64-linux-gnu + OPENSSL_INCLUDE_DIR: /usr/include/openssl + 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 openssl - 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..eb5c8e841b2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,7 +3,10 @@ on: push: tags: - "v*" - +env: + OPENSSL_LIB_DIR: /usr/lib/x86_64-linux-gnu + OPENSSL_INCLUDE_DIR: /usr/include/openssl + jobs: release: name: Publish for ${{ matrix.os }} @@ -25,7 +28,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 openssl fi - name: Build in ${{ matrix.target }} run: ./scripts/release_tar.sh ${{ matrix.target }} diff --git a/Cargo.toml b/Cargo.toml index 2c1f86d2099..f82b1f83e26 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -140,3 +140,5 @@ tokio = { version = "1.37.0", features = ["full", "sync"] } toml = "0.8.12" unescaper = "0.1.2" xshell = "0.2.6" + +openssl = { version = "0.10.35", features = ["vendored"] } 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 &&