From c6e4cb672cef0e88bb96703f92bfeb9fb78f3f80 Mon Sep 17 00:00:00 2001 From: Deepu Date: Mon, 22 Jan 2024 18:41:57 +0100 Subject: [PATCH] update CICD --- .github/workflows/cd.yml | 20 +++++++------------- .github/workflows/ci.yml | 9 ++++----- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d3fa295..057b88a 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -26,7 +26,7 @@ jobs: - name: Save version number to artifact run: echo "${{ env.VERSION }}" > artifacts/release-version - name: Upload artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: artifacts path: artifacts @@ -72,7 +72,7 @@ jobs: path: ~/.cargo/bin key: ${{ runner.os }}-cargo-bin-${{ hashFiles('.github/workflows/cd.yml') }} - name: Get shared artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: artifacts path: artifacts @@ -94,15 +94,12 @@ jobs: target: ${{ matrix.job.target }} - uses: taiki-e/install-action@cross if: ${{ matrix.job.use-cross }} - - name: Installing needed macOS dependencies - if: matrix.job.os == 'macos-latest' - run: brew install openssl@1.1 + - name: Installing needed Ubuntu dependencies if: matrix.job.os == 'ubuntu-latest' shell: bash run: | sudo apt-get -y update - sudo apt-get -y install -qq pkg-config libssl-dev case ${{ matrix.job.target }} in arm*-linux-*) sudo apt-get -y install gcc-arm-linux-gnueabihf ;; aarch64-*-linux-*) sudo apt-get -y install gcc-aarch64-linux-gnu ;; @@ -168,7 +165,7 @@ jobs: cp target/${{ matrix.job.target }}/release/${{ env.RELEASE_NAME }}.sha256 artifacts/ - name: Upload artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: artifacts path: artifacts @@ -184,7 +181,7 @@ jobs: fetch-depth: 1 - name: Get release artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: artifacts path: artifacts @@ -235,7 +232,7 @@ jobs: fetch-depth: 1 - name: Get release artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: artifacts path: artifacts @@ -294,7 +291,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Get release artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: artifacts path: artifacts @@ -335,7 +332,4 @@ jobs: path: ~/.cargo/bin key: ${{ runner.os }}-cargo-bin-${{ hashFiles('.github/workflows/cd.yml') }} - uses: dtolnay/rust-toolchain@stable - - run: | - sudo apt-get update - sudo apt-get install -y -qq pkg-config libssl-dev - run: cargo publish --token ${{ secrets.CARGO_API_KEY }} --allow-dirty diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5f6ee4..987653d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest needs: prepare steps: - - uses: actions/checkout@master + - uses: actions/checkout@v4 - uses: actions/cache@v3 name: Cache Cargo registry with: @@ -39,7 +39,7 @@ jobs: runs-on: ubuntu-latest needs: prepare steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - uses: actions/cache@v3 name: Cache Cargo registry with: @@ -48,7 +48,6 @@ jobs: - uses: dtolnay/rust-toolchain@nightly name: Set Rust toolchain # These dependencies are required for `clipboard` - - run: sudo apt-get install -y -qq libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev - run: cargo test env: CARGO_INCREMENTAL: '0' @@ -69,7 +68,7 @@ jobs: runs-on: ubuntu-latest needs: prepare steps: - - uses: actions/checkout@master + - uses: actions/checkout@v4 - uses: actions/cache@v3 name: Cache Cargo registry with: @@ -86,7 +85,7 @@ jobs: runs-on: ubuntu-latest needs: prepare steps: - - uses: actions/checkout@master + - uses: actions/checkout@v4 - uses: actions/cache@v3 name: Cache Cargo registry with: