Skip to content

Commit 032331c

Browse files
committed
fix ci and stuff
1 parent 5b7c1cc commit 032331c

File tree

15 files changed

+106
-2311
lines changed

15 files changed

+106
-2311
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,7 @@ jobs:
3737
cd onchain
3838
nix develop --command "make"
3939
40-
- name: Build offchain
41-
run: |
42-
cd offchain
43-
nix develop --command "make"
44-
4540
- name: Build raw scripts crate
4641
run: |
4742
cd raw-scripts
4843
nix develop --command "make"
49-
50-
- name: Acquire AWS credentials
51-
uses: aws-actions/configure-aws-credentials@v4
52-
with:
53-
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
54-
aws-region: ${{ env.AWS_DEFAULT_REGION }}
55-
56-
- name: Upload zip to S3
57-
run: |
58-
nix-shell --run "aws s3 cp offchain/build/release.zip s3://pcsc-bucket/${GITHUB_SHA}.zip --region $AWS_DEFAULT_REGION"
59-
60-
- name: Copy nix scopes to nix cache
61-
run: |
62-
nix build .#devShells.x86_64-linux.default --dry-run --json | jq -r '.[] | .drvPath + "^*"' \
63-
| nix copy --stdin --to "s3://cache.sc.iog.io?secret-key=${{ runner.temp }}/nix-key&region=$AWS_DEFAULT_REGION"

.github/workflows/release.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ bench-output/
6060
# Logs
6161
contractlog.json
6262

63-
# Purescript
64-
.psc-ide-port
65-
6663
# Rust
6764
raw-scripts/target
6865
raw-scripts/Cargo.lock

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Following are the relevant developer guidelines for the project. If you have any suggestion, reach out to the team,
44
or create a PR.
55

6-
- [Off-chain developer guideline](./offchain/CONTRIBUTING.md)
76
- [Haskell coding standards](./onchain/STANDARDS.md)
87

98
## GitHub rules
@@ -66,7 +65,7 @@ Make sure to commit the created changelog fragment along with your changes.
6665
- Versioning must follow semantic versioning (details in the [coding standards](./onchain/STANDARDS.md#versioning-and-changelogging))
6766
- `Unreleased` section of the Changelog is updated
6867
- In code `@since Unreleased` headers are updated
69-
- Versions are bumped in `flake.nix`, `onchain/trustless-sidechain.cabal`, `offchain/package.json`
68+
- Versions are bumped in `flake.nix`, `onchain/trustless-sidechain.cabal`
7069
- Push a git tag with the version (e.g. `v3.0.0`)
7170
- Create a GitHub release with a short description of the major changes, and a link to the Changelog
7271
- Build and upload an bundled JS artifact for the CLI

Makefile

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
.PHONY: requires_nix_shell format-staged \
22
unreachable-commit-staged format-whitespace-staged format-nix-staged \
3-
format-hs-staged format-cabal-staged format-purs-staged format-js-staged \
4-
format-dhall-staged check-format-hs-staged check-format-cabal-staged \
5-
check-format-purs-staged check-format-js-staged check-format-dhall-staged \
3+
format-hs-staged format-cabal-staged \
4+
check-format-hs-staged check-format-cabal-staged \
65
check-format-nix-staged check-format-whitespace
76

87
current-system := $(shell nix eval --impure --expr builtins.currentSystem)
@@ -31,12 +30,6 @@ format-staged: unreachable-commit-staged requires_nix_shell
3130
@$(MAKE) --no-print-directory format-cabal-staged
3231
@echo 'Formatting whitespace...'
3332
@$(MAKE) --no-print-directory format-whitespace-staged
34-
@echo 'Formatting `*.purs`...'
35-
@$(MAKE) --no-print-directory format-purs-staged
36-
@echo 'Formatting `*.js`...'
37-
@$(MAKE) --no-print-directory format-js-staged
38-
@echo 'Formatting `*.dhall`...'
39-
@$(MAKE) --no-print-directory format-dhall-staged
4033
@echo 'Formatting `*.nix` files...'
4134
@$(MAKE) --no-print-directory format-nix-staged
4235

@@ -119,39 +112,6 @@ check-format-cabal-staged: requires_nix_shell
119112
| grep -Ez '^.*\.cabal$$'\
120113
| xargs -0 -r cabal-fmt --check
121114

122-
format-purs-staged: requires_nix_shell
123-
@git diff -z --name-only --diff-filter=d --cached HEAD\
124-
| grep -Ez '^.*\.purs$$'\
125-
| while IFS= read -r -d '' FILE; do test -f $$FILE && printf "$$FILE\0"; done\
126-
| xargs -0 -r purs-tidy format-in-place
127-
128-
check-format-purs-staged: requires_nix_shell
129-
@git diff -z --name-only --diff-filter=d --cached HEAD\
130-
| grep -Ez '^.*\.purs$$'\
131-
| xargs -0 -r purs-tidy check
132-
133-
format-js-staged: requires_nix_shell
134-
@git diff -z --name-only --diff-filter=d --cached HEAD\
135-
| grep -Ez '^.*\.js$$'\
136-
| while IFS= read -r -d '' FILE; do test -f $$FILE && printf "$$FILE\0"; done\
137-
| xargs -0 -r eslint --fix
138-
139-
check-format-js-staged: requires_nix_shell
140-
@git diff -z --name-only --diff-filter=d --cached HEAD\
141-
| grep -Ez '^.*\.js$$'\
142-
| xargs -0 -r eslint
143-
144-
format-dhall-staged: requires_nix_shell
145-
@git diff -z --name-only --diff-filter=d --cached HEAD\
146-
| grep -Ez '^.*\.dhall$$'\
147-
| while IFS= read -r -d '' FILE; do test -f $$FILE && printf "$$FILE\0"; done\
148-
| xargs -0 -r dhall lint
149-
150-
check-format-dhall-staged: requires_nix_shell
151-
@git diff -z --name-only --diff-filter=d --cached HEAD\
152-
| grep -Ez '^.*\.dhall$$'\
153-
| xargs -0 -r dhall lint --check
154-
155115
nixpkgsfmt: requires_nix_shell
156116
nixpkgs-fmt $(NIX_SOURCES)
157117

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ The repository targets the following users:
1111
* the Sidechain node operator
1212
* the end-user wishing to transfer assets between the mainchain and the sidechain
1313

14-
## Getting started
15-
16-
See our [user manual](./offchain/README.md) for the list of available commands that you can use to interact with Cardano.
17-
1814
## CONTRIBUTING
1915

2016
See [CONTRIBUTING](./CONTRIBUTING.md) for guidelines on contributing code and documentation.

0 commit comments

Comments
 (0)