Skip to content

Commit

Permalink
update CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
deepu105 committed Jan 22, 2024
1 parent ba59984 commit c6e4cb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 [email protected]

- 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 ;;
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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'
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit c6e4cb6

Please sign in to comment.