diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/ISSUE_TEMPLATE/BUG-REPORT.yml | 7 | ||||
-rw-r--r-- | .github/workflows/audit.yml | 3 | ||||
-rw-r--r-- | .github/workflows/build.yml | 40 | ||||
-rw-r--r-- | .github/workflows/document.yml | 7 | ||||
-rw-r--r-- | .github/workflows/format.yml | 2 | ||||
-rw-r--r-- | .github/workflows/lint.yml | 12 | ||||
-rw-r--r-- | .github/workflows/test.yml | 4 |
7 files changed, 38 insertions, 37 deletions
diff --git a/.github/ISSUE_TEMPLATE/BUG-REPORT.yml b/.github/ISSUE_TEMPLATE/BUG-REPORT.yml index 9d0eb2ed..96dcc3b6 100644 --- a/.github/ISSUE_TEMPLATE/BUG-REPORT.yml +++ b/.github/ISSUE_TEMPLATE/BUG-REPORT.yml @@ -57,10 +57,13 @@ body: id: version attributes: label: Version - description: What version of iced are you using? + description: | + We only offer support for the `0.4` release on crates.io and the `master` branch on this repository. Which version are you using? Please make sure you are using the latest patch available (e.g. run `cargo update`). + + If you are using an older release, please upgrade to `0.4` before filing an issue. options: - master - - 0.3.0 + - 0.4 validations: required: true - type: dropdown diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 30bb3004..ba5dc190 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -8,8 +8,5 @@ jobs: - name: Install cargo-audit run: cargo install cargo-audit - uses: actions/checkout@master - - name: Manually update `nix` crates # See https://github.com/nix-rust/nix/issues/1627 - run: | - cargo update --package nix:0.20.0 --precise 0.20.2 - name: Audit dependencies run: cargo audit diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index beec168b..b30b7a61 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,19 +16,15 @@ jobs: export DEBIAN_FRONTED=noninteractive sudo apt-get -qq update sudo apt-get install -y libxkbcommon-dev - - name: Enable Link Time Optimizations - run: | - echo "[profile.release]" >> Cargo.toml - echo "lto = true" >> Cargo.toml - name: Build todos binary - run: cargo build --verbose --release --package todos + run: cargo build --verbose --profile release-opt --package todos - name: Archive todos binary uses: actions/upload-artifact@v1 with: name: todos-x86_64-unknown-linux-gnu - path: target/release/todos + path: target/release-opt/todos - name: Pack todos .deb package - run: cargo deb --no-build --package todos + run: cargo deb --no-build --profile release-opt --package todos - name: Rename todos .deb package run: mv target/debian/*.deb target/debian/iced_todos-x86_64-debian-linux-gnu.deb - name: Archive todos .deb package @@ -42,10 +38,6 @@ jobs: steps: - uses: hecrj/setup-rust-action@v1 - uses: actions/checkout@master - - name: Enable Link Time Optimizations - run: | - echo "[profile.release]" >> Cargo.toml - echo "lto = true" >> Cargo.toml - name: Enable static CRT linkage run: | mkdir .cargo @@ -55,33 +47,29 @@ jobs: run: | sed -i '1 i\#![windows_subsystem = \"windows\"]' examples/todos/src/main.rs - name: Build todos binary - run: cargo build --verbose --release --package todos + run: cargo build --verbose --profile release-opt --package todos - name: Archive todos binary uses: actions/upload-artifact@v1 with: name: todos-x86_64-pc-windows-msvc - path: target/release/todos.exe + path: target/release-opt/todos.exe todos_macos: runs-on: macOS-latest steps: - uses: hecrj/setup-rust-action@v1 - uses: actions/checkout@master - - name: Enable Link Time Optimizations - run: | - echo "[profile.release]" >> Cargo.toml - echo "lto = true" >> Cargo.toml - name: Build todos binary env: MACOSX_DEPLOYMENT_TARGET: 10.14 - run: cargo build --verbose --release --package todos + run: cargo build --verbose --profile release-opt --package todos - name: Open binary via double-click - run: chmod +x target/release/todos + run: chmod +x target/release-opt/todos - name: Archive todos binary uses: actions/upload-artifact@v1 with: name: todos-x86_64-apple-darwin - path: target/release/todos + path: target/release-opt/todos todos_raspberry: runs-on: ubuntu-latest @@ -90,21 +78,17 @@ jobs: - uses: actions/checkout@master - name: Install cross run: cargo install cross - - name: Enable Link Time Optimizations - run: | - echo "[profile.release]" >> Cargo.toml - echo "lto = true" >> Cargo.toml - name: Build todos binary for Raspberry Pi 3/4 (64 bits) - run: cross build --verbose --release --package todos --target aarch64-unknown-linux-gnu + run: cross build --verbose --profile release-opt --package todos --target aarch64-unknown-linux-gnu - name: Archive todos binary uses: actions/upload-artifact@v1 with: name: todos-aarch64-unknown-linux-gnu - path: target/aarch64-unknown-linux-gnu/release/todos + path: target/aarch64-unknown-linux-gnu/release-opt/todos - name: Build todos binary for Raspberry Pi 2/3/4 (32 bits) - run: cross build --verbose --release --package todos --target armv7-unknown-linux-gnueabihf + run: cross build --verbose --profile release-opt --package todos --target armv7-unknown-linux-gnueabihf - name: Archive todos binary uses: actions/upload-artifact@v1 with: name: todos-armv7-unknown-linux-gnueabihf - path: target/armv7-unknown-linux-gnueabihf/release/todos + path: target/armv7-unknown-linux-gnueabihf/release-opt/todos diff --git a/.github/workflows/document.yml b/.github/workflows/document.yml index 3a8326b6..e69f4d63 100644 --- a/.github/workflows/document.yml +++ b/.github/workflows/document.yml @@ -10,11 +10,16 @@ jobs: group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: hecrj/setup-rust-action@v1 + with: + rust-version: nightly - uses: actions/checkout@v2 - name: Generate documentation run: | - cargo doc --no-deps --all-features \ + RUSTDOCFLAGS="--cfg docsrs" \ + cargo doc --no-deps --all-features \ -p iced_core \ + -p iced_style \ + -p iced_futures \ -p iced_native \ -p iced_lazy \ -p iced_graphics \ diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 92caff79..42a96411 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -9,4 +9,4 @@ jobs: components: rustfmt - uses: actions/checkout@master - name: Check format - run: cargo fmt --all -- --check + run: cargo fmt --all -- --check --verbose diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..6fd98374 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,12 @@ +name: Lint +on: [push, pull_request] +jobs: + all: + runs-on: ubuntu-latest + steps: + - uses: hecrj/setup-rust-action@v1 + with: + components: clippy + - uses: actions/checkout@master + - name: Check lints + run: cargo clippy --workspace --all-features --all-targets --no-deps -- -D warnings diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 433afadc..38b81842 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,8 +20,8 @@ jobs: sudo apt-get install -y libxkbcommon-dev - name: Run tests run: | - cargo test --verbose --all - cargo test --verbose --all --all-features + cargo test --verbose --workspace + cargo test --verbose --workspace --all-features web: runs-on: ubuntu-latest |