Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deleted useless build scripts #373

Open
wants to merge 1 commit into
base: ts
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .github/workflows/google-format.yml

This file was deleted.

109 changes: 58 additions & 51 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,73 +7,28 @@ on:
- reopened
- synchronize
paths:
- 'Java/**'
- 'JS/**'
- 'JS/wasm/**'

jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
java: ${{ steps.filter.outputs.java }}
js: ${{ steps.filter.outputs.js }}
wasm: ${{ steps.filter.outputs.wasm }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
java:
- 'Java/**'
js:
- 'JS/**'
wasm:
- 'JS/**'


java:
needs: changes
if: ${{ needs.changes.outputs.java == 'true' }}
runs-on: ubuntu-latest
outputs:
VALUE: ${{ steps.set_short_hash.outputs.VALUE }}

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set SHORT_HASH
id: set_short_hash
run: |
echo "::set-output name=VALUE::${{ github.sha }}"
echo "RELEASE_TAG=${{ github.sha }}-$(TZ=UTC-8 date +"%Y.%m.%d")" >> $GITHUB_ENV

- name: Goto Java folder
run: cd Java

- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'

- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.3

- name: Create output folder
run: mkdir -p Java/FlySpring/edgechain-app/BuildOutput

- name: Build edgechain-app project
working-directory: Java/FlySpring/edgechain-app
run: mvn clean package -DskipTests

- name: Run edgechain testcases
working-directory: Java/FlySpring/edgechain-app
run: mvn test

- name: Copy edgechain-app JAR to BuildOutput
run: cp Java/FlySpring/edgechain-app/target/edgechain.jar Java/FlySpring/edgechain-app/BuildOutput


js:
needs: changes
if: ${{ needs.changes.outputs.js == 'true' }}
Expand Down Expand Up @@ -146,4 +101,56 @@ jobs:

- name: Package edgechain-app project
run: npm pack
working-directory: JS/edgechains/lib
working-directory: JS/edgechains/lib


wasm:
needs: changes
if: ${{ needs.changes.outputs.wasm == 'true' }}
permissions:
contents: write
pull-requests: write

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Cache Javy Core
uses: actions/cache@v2
with:
path: ./target
key: javy-core
restore-keys: |
javy-core

- name: Check if Javy Core is cached
id: cache-hit
run: |
# echo "cache-hit=$(test -d ./target && echo true || echo false)" >> $GITHUB_OUTPUT
echo "cache-hit=$(test -d ./target && echo true || echo false)" >> $GITHUB_OUTPUT

- name: Build Javy Core
working-directory: .
run: |
make add all
- name: Build CLI
working-directory: .
run: |
make build-arakoo
- name: Build Jsonnet
working-directory: .
run: |
make build-jsonnet
78 changes: 0 additions & 78 deletions .github/workflows/release-java.yml

This file was deleted.

86 changes: 0 additions & 86 deletions .github/workflows/release-js.yml

This file was deleted.

Loading
Loading