diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml index 5629860..73faec2 100644 --- a/.github/workflows/release-linux.yml +++ b/.github/workflows/release-linux.yml @@ -1,4 +1,4 @@ -name: Release (MacOS, Linux) +name: Release Linux on: release: @@ -15,13 +15,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - name: [linux-18, linux-20, linux-22] + name: [linux-20, linux-22] include: - - name: linux-18 - os: ubuntu-18.04 - artifact_name: matchstick - asset_name: binary-linux-18 - name: linux-20 os: ubuntu-20.04 artifact_name: matchstick @@ -36,7 +32,10 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: toolchain: 1.68.0 - - run: sudo apt-get install protobuf-compiler + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get -y install libpq-dev protobuf-compiler - name: Build run: cargo build --release && mv target/release/${{ matrix.artifact_name }} target/release/${{ matrix.asset_name }} diff --git a/.github/workflows/release-macos-intel.yml b/.github/workflows/release-macos-intel.yml index a6b6d05..9e8ed10 100644 --- a/.github/workflows/release-macos-intel.yml +++ b/.github/workflows/release-macos-intel.yml @@ -1,4 +1,4 @@ -name: Release (MacOS, Linux) +name: Release MacOS Intel on: release: @@ -15,17 +15,17 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - name: [macos-10.15, macos-11] + name: [macos-11, macos-12] include: - - name: macos-10.15 - os: macos-10.15 - artifact_name: matchstick - asset_name: binary-macos-10.15 - name: macos-11 os: macos-11 artifact_name: matchstick asset_name: binary-macos-11 + - name: macos-12 + os: macos-12 + artifact_name: matchstick + asset_name: binary-macos-12 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d3a10ce..05c97c3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -31,7 +31,10 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: toolchain: 1.68.0 - - run: sudo apt-get install protobuf-compiler + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get -y install libpq-dev protobuf-compiler - run: cargo test fmt: @@ -53,6 +56,9 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: toolchain: 1.68.0 - - run: sudo apt-get install protobuf-compiler + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get -y install libpq-dev protobuf-compiler - run: rustup component add clippy - run: cargo clippy -- -D warnings