Skip to content

Commit

Permalink
feat: fixing cicd.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-monninger committed Jan 28, 2024
1 parent 28fd6af commit 9f95306
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 134 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-linux-aarch64/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ runs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.70
toolchain: 1.73
2 changes: 1 addition & 1 deletion .github/actions/setup-linux-x86_64/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ runs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.70
toolchain: 1.73
2 changes: 1 addition & 1 deletion .github/actions/setup-macos-aarch64/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.70
toolchain: 1.73

- name: Export LLVM path
run: echo "LLVM_SYS_130_PREFIX=$(brew --prefix llvm)" >> $GITHUB_ENV
2 changes: 1 addition & 1 deletion .github/actions/setup-macos-x86_64/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.70
toolchain: 1.73

- name: Export LLVM path
run: echo "LLVM_SYS_130_PREFIX=$(brew --prefix llvm)" >> $GITHUB_ENV
2 changes: 1 addition & 1 deletion .github/actions/setup-windows-x86_64/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ runs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.70
toolchain: 1.73
3 changes: 2 additions & 1 deletion movement-sdk/artifacts/src/known_artifacts/m1/testnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ impl ConstructorOperations for Constructor {
"testnet".to_string(),
r#"
echo $MOVEMENT_DIR
cp $MOVEMENT_DIR/bin/subnet $MOVEMENT_DIR/bin/$(cat $MOVEMENT_DIR/rsc/testnet-vmid)
mkdir -p $MOVEMENT_DIR/avalanchego/plugins
cp $MOVEMENT_DIR/bin/subnet $MOVEMENT_DIR/avalanchego/plugins/$(cat $MOVEMENT_DIR/rsc/testnet-vmid)
"#.to_string(),
).with_dependencies(vec![
avalanche.into(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ impl ConstructorOperations for Constructor {
"cargo".to_string(),
r#"
mkdir -p $MOVEMENT_DIR/workspace
cd $MOVEMENT_DIR/workspace
mkdir -p $MOVEMENT_DIR/bin
git clone [email protected]:ava-labs/avalanchego.git
cd avalanchego
git checkout tags/v1.10.12
./scripts/build.sh
mkdir -p $HOME/bin
Expand All @@ -43,7 +46,7 @@ impl ConstructorOperations for Constructor {
git::Constructor::default().into(),
].into_iter().collect()
).with_checker(
Checker::command_exists("avalanchego".to_string())
Checker::Noop
)
}

Expand Down
2 changes: 1 addition & 1 deletion movement-sdk/services/src/m1/testnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl ConstructorOperations for Constructor {
r#"
set -e
echo $MOVEMENT_DIR
$MOVEMENT_DIR/bin/avalanchego --network-id=fuji --track-subnets=$(cat $MOVEMENT_DIR/rsc/testnet-vmid)
$MOVEMENT_DIR/bin/avalanchego --network-id=fuji --track-subnets=$(cat $MOVEMENT_DIR/rsc/testnet-id) --plugin-dir=$MOVEMENT_DIR/avalanchego/plugins
"#.to_string(),
vec![
testnet::Constructor::default_with_version(
Expand Down
12 changes: 12 additions & 0 deletions movement-sdk/util/util/src/util/artifact/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,18 @@ impl Artifact {
}
}

pub fn pessimistic_bin_release(name : String, release : Release) -> Self {
Self {
known_artifact : KnownArtifact::Name(name.clone()),
release,
location : PathBuf::from("bin").join(name.clone()).into(),
version : Version::Latest,
builder : Builder::Release(builder::release::Release::new()),
checker : Checker::command_exists(name),
dependencies : BTreeSet::new()
}
}

pub fn with_checker(mut self, checker : Checker) -> Self {
self.checker = checker;
self
Expand Down
122 changes: 0 additions & 122 deletions movement-sdk/util/util/src/util/artifact/artifacts/cli/cli.rs

This file was deleted.

2 changes: 0 additions & 2 deletions movement-sdk/util/util/src/util/artifact/artifacts/cli/mod.rs

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 0 additions & 2 deletions movement-sdk/util/util/src/util/artifact/artifacts/mod.rs

This file was deleted.

0 comments on commit 9f95306

Please sign in to comment.