Skip to content

Commit

Permalink
Fixed to allow releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
orizi committed May 22, 2024
1 parent 94d4e0a commit 6e6b5f0
Show file tree
Hide file tree
Showing 4 changed files with 21 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_INCLUDE_DIR: /usr/local/ssl/include
OPENSSL_LIB_DIR: /usr/local/ssl/lib

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
- 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/local/ssl/include
OPENSSL_LIB_DIR: /usr/local/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
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
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 6e6b5f0

Please sign in to comment.