Skip to content

Commit

Permalink
Merge pull request #275 from lightningrodlabs/actions-test
Browse files Browse the repository at this point in the history
Refactor Github Workflows to no longer use Nix
  • Loading branch information
Connoropolous authored May 1, 2023
2 parents e1c59e5 + 2ce5572 commit ec2d9a6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 40 deletions.
34 changes: 5 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v2
- uses: dtolnay/[email protected]
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
.cargo/bin/
.cargo/registry/index/
.cargo/registry/cache/
.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Use Nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-21.05
- name: Configure Nix substituters
run: |
set -xe
mkdir -p ~/.config/nix/
cp ./.github/nix.conf ~/.config/nix/
- name: Use cachix
uses: cachix/cachix-action@v12
with:
name: holochain-ci
- name: Prepare Nix environment
run: nix-shell --command "echo Completed"
targets: wasm32-unknown-unknown
- name: Install holochain_cli
run: cargo install holochain_cli --version 0.1.0 --locked
# build hApp
- name: Build hApp
run: |
nix-shell --run "npm run happ-pack"
run: bash ./scripts/happ-pack.sh
# store happs as build artifacts
- uses: actions/upload-artifact@master
with:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# Disabled for now, to not waste CI resources

# name: Cargo tests

#
# on: [ push, pull_request ]

#
# jobs:
# cargo_test:
# runs-on: ubuntu-latest

#
# steps:
# - uses: actions/checkout@v2
# - uses: actions-rs/toolchain@v1
# - uses: actions/checkout@v3
# - uses: dtolnay/rust-toolchain@1.65
# with:
# toolchain: 1.58
# target: wasm32-unknown-unknown

# - run: rustup update stable
# targets: wasm32-unknown-unknown
#
# - run: rustc --version
# - run: cargo --version
# - run: rustup component list --installed
# - run: rustup show

# - run: ./scripts/happ-test.sh
#
# - run: cargo install holochain_cli --version 0.1.0 --locked
# - run: bash ./scripts/happ-pack.sh
#

0 comments on commit ec2d9a6

Please sign in to comment.