Skip to content

Commit

Permalink
Rename and rewrite Arc-Runtime into Arc-Sys
Browse files Browse the repository at this point in the history
  • Loading branch information
segeljakt committed Jan 27, 2023
1 parent 2a6f5bb commit 7bd087e
Show file tree
Hide file tree
Showing 193 changed files with 14,976 additions and 10,226 deletions.
8 changes: 4 additions & 4 deletions .github/continuous-integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function run-mlir-tests {
run-step ninja -C $ARC_MLIR_BUILD/llvm-build/ check-arc-mlir
}

function run-runtime-tests {
cd arc-runtime
function run-sys-tests {
cd arc-sys
run-step arc-cargo "$@"
}

Expand Down Expand Up @@ -123,8 +123,8 @@ case $1 in
;;

cargo)
# We assume this is a arc-runtime cargo command line
# We assume this is a arc-sys cargo command line
shift
run-runtime-tests "$@"
run-sys-tests "$@"
;;
esac
18 changes: 8 additions & 10 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@ jobs:
toolchain: nightly
override: true

- name: Cache arc-runtime-docs
id: cache-arc-runtime-docs
uses: actions/cache@v2

- name: Cache arc-sys-docs
id: cache-arc-sys-docs
uses: actions/cache@v3
with:
path: arc-docs/src/target
key: ${{ runner.os }}-cargo-${{ hashFiles('arc-runtime/**') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('arc-sys/**') }}

- name: Cache arc-preprocessor
id: cache-arc-preprocessor
Expand Down Expand Up @@ -71,11 +67,13 @@ jobs:
path: ~/.cargo/bin/zola
key: ${{ runner.os }}-cargo-${{ env.ZOLA_VERSION }}

- name: Build arc-runtime-docs
if: steps.cache-arc-runtime-docs.outputs.cache-hit != 'true'
run: |
cargo +nightly doc --document-private-items --no-deps --target-dir=arc-docs/src/target --manifest-path=arc-runtime/Cargo.toml
cargo +nightly doc --document-private-items --no-deps --target-dir=arc-docs/src/target --manifest-path=arc-runtime/macros/Cargo.toml
- name: Build arc-sys-docs
if: steps.cache-arc-sys-docs.outputs.cache-hit != 'true'
env:
ARC_LANG_CMD: 'NONE' # Do not build Arc-Lang
ARC_MLIR_CMD: 'NONE' # Do not build Arc-MLIR
RUSTDOCFLAGS: '--enable-index-page -Zunstable-options'
run: cargo +nightly doc --document-private-items --no-deps --target-dir=arc-docs/src/target --manifest-path=arc-sys/Cargo.toml

- name: Build arc-preprocessor
if: steps.cache-arc-preprocessor.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
mv README.md "$package"
mv arc-mlir/build/llvm-build/bin/{arc,arc-lang,arc-mlir} "$package/bin"
mv {arc-runtime,arc-lang/stdlib} "$package/share"
mv {arc-sys,arc-lang/stdlib} "$package/share"
tar cvf "$package.tar" "$package"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
paths:
- "arc-lang/**"
- "arc-mlir/**"
- "arc-runtime/**"
- "arc-sys/**"
- "arc-python/**"
- ".github/workflows/test.yml"
branches:
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
env:
ARC_MLIR_BUILD: ${{ format('{0}/build', runner.temp) }}

- name: Pre-build arc-runtime
- name: Pre-build arc-sys
run: ./.github/continuous-integration.sh cargo test
env:
ARC_MLIR_BUILD: ${{ format('{0}/build', runner.temp) }}
Expand All @@ -48,15 +48,15 @@ jobs:
env:
ARC_MLIR_BUILD: ${{ format('{0}/build', runner.temp) }}

- name: "Run arc-runtime test: clippy"
- name: "Run arc-sys test: clippy"
run: ./.github/continuous-integration.sh cargo clippy
env:
ARC_MLIR_BUILD: ${{ format('{0}/build', runner.temp) }}

- name: "Ccache/Sccache statistics"
run: ./.github/continuous-integration.sh check-ccache

# - name: "Run arc-runtime test: fmt -- -v --check"
# - name: "Run arc-sys test: fmt -- -v --check"
# run: ./.github/continuous-integration.sh cargo fmt -- -v --check
# env:
# ARC_MLIR_BUILD: ${{ format('{0}/build', runner.temp) }}
Expand Down
1 change: 0 additions & 1 deletion arc-runtime/.gitignore

This file was deleted.

45 changes: 0 additions & 45 deletions arc-runtime/Cargo.toml

This file was deleted.

13 changes: 0 additions & 13 deletions arc-runtime/examples/consensus/Cargo.toml

This file was deleted.

6 changes: 0 additions & 6 deletions arc-runtime/examples/consensus/omnipaxos.conf

This file was deleted.

132 changes: 0 additions & 132 deletions arc-runtime/examples/consensus/src/ble.rs

This file was deleted.

33 changes: 0 additions & 33 deletions arc-runtime/examples/consensus/src/config.rs

This file was deleted.

Loading

0 comments on commit 7bd087e

Please sign in to comment.