Skip to content

Commit

Permalink
Fixed to allow releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
orizi authored and TomerStarkware committed May 22, 2024
1 parent 94d4e0a commit 920fb7b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
tags:
- "v*"

env:
OPENSSL_INCLUDE_DIR: /usr/ssl/include
OPENSSL_LIB_DIR: /usr/ssl/lib

jobs:
release:
name: Publish for ${{ matrix.os }}
Expand All @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
18 changes: 9 additions & 9 deletions scripts/release_crates.sh
Original file line number Diff line number Diff line change
@@ -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 &&
Expand Down

0 comments on commit 920fb7b

Please sign in to comment.