From de91ae9747a4f9824da6b14548ba23f6d708f203 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 4 May 2023 10:46:21 +0200 Subject: [PATCH] Fix path to get the Qt license Don't use Qt on the normal CI (no need) Update more deps --- .github/workflows/build_binary.yaml | 20 ++++++++++---------- .github/workflows/rust.yaml | 22 +++++++++++----------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build_binary.yaml b/.github/workflows/build_binary.yaml index 2d58692..7db9b5d 100644 --- a/.github/workflows/build_binary.yaml +++ b/.github/workflows/build_binary.yaml @@ -16,11 +16,11 @@ jobs: with: toolchain: stable - name: Install Qt - uses: jurplel/install-qt-action@v2 + uses: jurplel/install-qt-action@v3 with: version: 6.5.0 # - uses: Swatinem/rust-cache@v1 - - uses: actions-rs/install@v0.1 + - uses: baptiste0928/cargo-install@v2 with: crate: cargo-about - name: Build @@ -48,8 +48,8 @@ jobs: mkdir 3rdparty-licenses cd .. cd .. - cp ~/.cargo/registry/src/github.com-1ecc6299db9ec823/i-slint-backend-qt-1.*/LICENSE.QT pkg/cargo-ui/3rdparty-licenses/ - cp ~/.cargo/registry/src/github.com-1ecc6299db9ec823/i-slint-backend-qt-1.*/QtThirdPartySoftware_Listing.txt pkg/cargo-ui/3rdparty-licenses/ + cp ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/i-slint-backend-qt-1.*/LICENSE.QT pkg/cargo-ui/3rdparty-licenses/ + cp ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/i-slint-backend-qt-1.*/QtThirdPartySoftware_Listing.txt pkg/cargo-ui/3rdparty-licenses/ cp ../LICENSE-* pkg/cargo-ui/3rdparty-licenses/ cargo about generate about.hbs -o pkg/cargo-ui/3rdparty-licenses/index.html - name: Upload artifact @@ -74,12 +74,12 @@ jobs: path: ~/work/cargo-ui/Qt key: ${{ runner.os }}-${{ github.job }}-Qt - name: Install Qt - uses: jurplel/install-qt-action@v2 + uses: jurplel/install-qt-action@v3 with: version: 5.15.2 cached: ${{ steps.cache-qt.outputs.cache-hit }} # - uses: Swatinem/rust-cache@v1 - - uses: actions-rs/install@v0.1 + - uses: baptiste0928/cargo-install@v2 with: crate: cargo-about - name: Build @@ -91,7 +91,7 @@ jobs: run: | mkdir -p cargo-ui/3rdparty-licenses cp ./target/release/cargo-ui ./cargo-ui/ - cp ~/.cargo/registry/src/github.com-1ecc6299db9ec823/i-slint-backend-qt-1.*/LICENSE.QT ~/.cargo/registry/src/github.com-1ecc6299db9ec823/i-slint-backend-qt-1.*/QtThirdPartySoftware_Listing.txt cargo-ui/3rdparty-licenses/ + cp ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/i-slint-backend-qt-1.*/LICENSE.QT ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/i-slint-backend-qt-1.*/QtThirdPartySoftware_Listing.txt cargo-ui/3rdparty-licenses/ cp ./LICENSE-* cargo-ui/3rdparty-licenses/ cargo about generate about.hbs -o cargo-ui/3rdparty-licenses/index.html - name: Tar artifacts to preserve permissions @@ -123,12 +123,12 @@ jobs: path: ~/work/cargo-ui/Qt key: ${{ runner.os }}-${{ github.job }}-Qt - name: Install Qt - uses: jurplel/install-qt-action@v2 + uses: jurplel/install-qt-action@v3 with: version: 6.5.0 cached: ${{ steps.cache-qt.outputs.cache-hit }} # - uses: Swatinem/rust-cache@v1 - - uses: actions-rs/install@v0.1 + - uses: baptiste0928/cargo-install@v2 with: crate: cargo-about - name: Build x86_64 @@ -156,7 +156,7 @@ jobs: mkdir -p ./plugins/platforms cp -a ~/work/cargo-ui/Qt/6.5.0/macos/plugins/platforms/libqcocoa.dylib ./plugins/platforms cd .. - cp ~/.cargo/registry/src/github.com-1ecc6299db9ec823/i-slint-backend-qt-1.*/LICENSE.QT ~/.cargo/registry/src/github.com-1ecc6299db9ec823/i-slint-backend-qt-1.*/QtThirdPartySoftware_Listing.txt cargo-ui/3rdparty-licenses/ + cp ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/i-slint-backend-qt-1.*/LICENSE.QT ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/i-slint-backend-qt-1.*/QtThirdPartySoftware_Listing.txt cargo-ui/3rdparty-licenses/ cp ./LICENSE-* cargo-ui/3rdparty-licenses/ cargo about generate about.hbs -o cargo-ui/3rdparty-licenses/index.html - name: Tar artifacts to preserve permissions diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index 3e0144f..c6f66a1 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -21,17 +21,17 @@ jobs: - name: Install Linux Dependencies run: sudo apt-get install libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev - - name: Cache Qt - id: cache-qt - uses: actions/cache@v3 - with: - path: ~/work/cargo-ui/Qt - key: ${{ runner.os }}-${{ github.job }}-Qt - - name: Install Qt - uses: jurplel/install-qt-action@v2 - with: - version: '5.15.2' - cached: ${{ steps.cache-qt.outputs.cache-hit }} +# - name: Cache Qt +# id: cache-qt +# uses: actions/cache@v3 +# with: +# path: ~/work/cargo-ui/Qt +# key: ${{ runner.os }}-${{ github.job }}-Qt +# - name: Install Qt +# uses: jurplel/install-qt-action@v3 +# with: +# version: '5.15.2' +# cached: ${{ steps.cache-qt.outputs.cache-hit }} - uses: dtolnay/rust-toolchain@stable with: