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

fix : incorrect arch report #27

Merged
merged 2 commits into from
Aug 7, 2024
Merged
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
15 changes: 8 additions & 7 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ rustflags = ["-C", "target-feature=-crt-static"]
rustflags = ["-C", "target-feature=+crt-static"]




[alias]
# Do not append `--` or it will break IDEs
ck = "check --workspace --all-features --all-targets --locked"
lint = "clippy --workspace --all-targets --all-features"
codecov = "llvm-cov --workspace --ignore-filename-regex tasks"
# coverage = "run -p oxc_coverage --release --"
# benchmark = "run -p oxc_benchmark --release --"
# minsize = "run -p oxc_minsize --release --"
rule = "run -p rulegen"
ck = "check --workspace --all-features --all-targets --locked"
lint = "clippy --workspace --all-targets --all-features"
codecov = "llvm-cov --workspace --ignore-filename-regex tasks"

# Build oxlint in release mode
pactup = "build --release --bin pactup"
38 changes: 16 additions & 22 deletions .github/workflows/bloat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,24 @@ jobs:
name: Cargo Bloat
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: taiki-e/checkout-action@v1
- uses: taiki-e/checkout-action@v1

- name: Cache
uses: Swatinem/rust-cache@v2

- name: Install cargo-bloat
uses: taiki-e/install-action@v2
- uses: Boshen/setup-rust@main
with:
tool: cargo-bloat
cache-key: warm
tools: cargo-bloat

- name: Run
env:
RUSTFLAGS: "-C debuginfo=2 -C strip=none"
shell: bash
run: |
export CMD="cargo bloat"

# Get largest functions
export BLOAT_FUNC_CMD="${CMD} -n 10"
export BLOAT_FUNC=`${BLOAT_FUNC_CMD}`
echo "${BLOAT_FUNC}"

# Get largest crates
export BLOAT_CRATE_CMD="${CMD} --crates -n 10"
export BLOAT_CRATE=`${BLOAT_CRATE_CMD}`
echo "${BLOAT_CRATE}"

# Render summary
envsubst < .github/workflows/bloat.tmpl > $GITHUB_STEP_SUMMARY
echo "# Bloat Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY

echo "## Largest functions" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
cargo bloat --release -n 15 >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
36 changes: 10 additions & 26 deletions .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,20 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
create_pull_request:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
steps:
# set up
- uses: actions/checkout@v4

- uses: hecrj/setup-rust-action@v2
with:
rust-version: stable

- uses: Swatinem/rust-cache@v2

- uses: pnpm/action-setup@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "pnpm"
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v4
name: Setup pnpm cache
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install Asciinema
run: |
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ jobs:
- os: ubuntu-latest
- os: macos-14
runs-on: ${{ matrix.os }}
env:
# https://github.com/mozilla/sccache/blob/main/docs/S3.md
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SCCACHE_BUCKET: ${{ secrets.SCCACHE_BUCKET }}
SCCACHE_ENDPOINT: ${{ secrets.SCCACHE_ENDPOINT }}
SCCACHE_REGION: auto
RUSTC_WRAPPER: ${{ vars.USE_SCCACHE == 'true' && 'sccache' || '' }}
CARGO_INCREMENTAL: 0
SCCACHE_LOCAL_RW_MODE:
steps:
- uses: taiki-e/checkout-action@v1
- uses: Boshen/setup-rust@main
Expand All @@ -58,12 +48,10 @@ jobs:
# cache `target` directory to avoid download crates
save-cache: ${{ github.ref_name == 'main' }}
cache-key: warm
# cache build outputs to speed up compilation
- uses: mozilla-actions/[email protected]
if: ${{ vars.USE_SCCACHE == 'true' }}
- run: cargo test --no-run
- run: cargo test
- run: cargo ck
- run: git diff --exit-code # Must commit everything

typos:
name: Spell Check
Expand Down Expand Up @@ -113,9 +101,9 @@ jobs:
with:
restore-cache: false
if: steps.filter.outputs.src == 'true'
- uses: cargo-bins/cargo-binstall@main
- uses: cargo-bins/cargo-binstall@v1.9.0
if: steps.filter.outputs.src == 'true'
- run: cargo binstall --no-confirm cargo-shear
- run: cargo binstall --no-confirm cargo-shear@1
if: steps.filter.outputs.src == 'true'
- run: cargo shear
if: steps.filter.outputs.src == 'true'
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release_pactup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ jobs:
permissions:
contents: write # for softprops/action-gh-release@v1
id-token: write # for `npm publish --provenance`

steps:
- uses: taiki-e/checkout-action@v1

Expand Down Expand Up @@ -180,9 +181,10 @@ jobs:
pactup-*.tar.gz
# pactup-*.zip # windows
fail_on_unmatched_files: true
target_commitish: ${{ github.sha }}

- name: wait 3 minutes for smoke test
run: sleep 180s
- name: wait 1 minutes for smoke test
run: sleep 60s

smoke:
needs: [publish, check]
Expand Down
2 changes: 1 addition & 1 deletion .pact-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.11
4.12
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "pactup"
version = "0.2.15"
edition = "2021"
license = "GPL-3.0"
license = "MIT"
publish = true
build = "build.rs"
repository = "https://github.com/kadena-community/pactup"
Expand Down
Loading