Skip to content

Commit

Permalink
Merge pull request #25 from Carlosted/build-script
Browse files Browse the repository at this point in the history
Move icon toggling to a build script
  • Loading branch information
carloskiki committed Oct 29, 2023
2 parents 7f93f1a + 88230e0 commit 711a04f
Show file tree
Hide file tree
Showing 102 changed files with 71,748 additions and 2,028 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[env]
ICONDATA_MANIFEST_DIR = { value = "", relative = true }
48 changes: 24 additions & 24 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,29 @@ jobs:
components: rustfmt
- name: cargo fmt --check
run: cargo fmt --check
clippy:
runs-on: ubuntu-latest
name: ${{ matrix.toolchain }} / clippy
permissions:
contents: read
checks: write
strategy:
fail-fast: false
matrix:
toolchain: [stable, beta]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: cargo clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# clippy: Let's not use clippy for now because files are autogenerated.
# runs-on: ubuntu-latest
# name: ${{ matrix.toolchain }} / clippy
# permissions:
# contents: read
# checks: write
# strategy:
# fail-fast: false
# matrix:
# toolchain: [stable, beta]
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# - name: Install ${{ matrix.toolchain }}
# uses: dtolnay/rust-toolchain@master
# with:
# toolchain: ${{ matrix.toolchain }}
# components: clippy
# - name: cargo clippy
# uses: actions-rs/clippy-check@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
doc:
runs-on: ubuntu-latest
name: nightly / doc
Expand All @@ -65,7 +65,7 @@ jobs:
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
strategy:
matrix:
msrv: ["1.60.0"] # 2021 edition requires 1.56
msrv: ["1.67.0"] # 2021 edition requires 1.56
name: ubuntu / ${{ matrix.msrv }}
steps:
- uses: actions/checkout@v4
Expand Down
122 changes: 122 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ members = [
"icondata_wi",
"icondata_core",
]
exclude = ["build", "icon_index"]
exclude = ["build", "icon_index", "size-test"]

[workspace.dependencies]
serde = "^1.0.103"
9 changes: 9 additions & 0 deletions Icondata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include-all = true # If set to `true`, all icons will be included
# (takes precedence over `icons` field).
# Can be useful for testing many icons,
# but won't make `rust-analyzer` happy.
# It is very important to set `lto = true` in your
# `Cargo.toml` when using this feature,
# otherwise your binary size will be huge.

# icons = ["MyIcon1", "MyIcon2", ...] # Array of icons include.

0 comments on commit 711a04f

Please sign in to comment.