Updated CI for release building.
This commit is contained in:
@@ -65,7 +65,9 @@ jobs:
|
||||
|
||||
- name: install dependencies
|
||||
run: |
|
||||
sudo apt update && sudo apt upgrade && sudo apt install libwebkit2gtk-4.0-dev upx
|
||||
sudo apt update
|
||||
sudo apt upgrade
|
||||
sudo apt install libwebkit2gtk-4.1-dev libsoup-3.0-dev upx-ucl
|
||||
cargo install cross
|
||||
|
||||
- name: Build and package deb packages
|
||||
@@ -97,20 +99,14 @@ jobs:
|
||||
|
||||
- name: install dependencies
|
||||
if: contains(matrix.os, 'ubuntu')
|
||||
run: sudo apt update && sudo apt install --no-install-recommends libwebkit2gtk-4.0-dev upx
|
||||
run: sudo apt update && sudo apt install --no-install-recommends libwebkit2gtk-4.1-dev libsoup-3.0-dev upx-ucl
|
||||
|
||||
- name: Build release binaries
|
||||
run: cargo build --release
|
||||
|
||||
- name: Build Windows release binaries with Edge web-engine
|
||||
if: contains(matrix.os, 'windows')
|
||||
run: cargo build --release --features "edge" --target-dir edge
|
||||
|
||||
- name: windows
|
||||
if: contains(matrix.os, 'windows')
|
||||
run: |
|
||||
echo "BIN_ARCH=windows-amd64" >> $GITHUB_ENV
|
||||
echo "BIN_ARCH_EDGE=windows-amd64-edge" >> $GITHUB_ENV
|
||||
run: echo "BIN_ARCH=windows-amd64" >> $GITHUB_ENV
|
||||
|
||||
- name: linux
|
||||
if: contains(matrix.os, 'ubuntu')
|
||||
@@ -129,8 +125,6 @@ jobs:
|
||||
run: |
|
||||
echo "BIN_PATH=target/release/alfis.exe" >> $GITHUB_ENV
|
||||
echo "ZIP_NAME=alfis-${{env.BIN_ARCH}}-${{ needs.get_version.outputs.project_version }}.zip" >> $GITHUB_ENV
|
||||
echo "BIN_PATH_EDGE=edge/release/alfis.exe" >> $GITHUB_ENV
|
||||
echo "ZIP_NAME_EDGE=alfis-${{env.BIN_ARCH}}-${{ needs.get_version.outputs.project_version }}-edge.zip" >> $GITHUB_ENV
|
||||
|
||||
- name: Packaging
|
||||
uses: papeloto/action-zip@v1
|
||||
@@ -138,13 +132,6 @@ jobs:
|
||||
files: ${{ env.BIN_PATH }} alfis.toml README.md LICENSE adblock.txt
|
||||
dest: ${{ env.ZIP_NAME }}
|
||||
|
||||
- name: Packaging Edge binary
|
||||
if: contains(matrix.os, 'windows')
|
||||
uses: papeloto/action-zip@v1
|
||||
with:
|
||||
files: ${{ env.BIN_PATH_EDGE }} alfis.toml README.md LICENSE adblock.txt
|
||||
dest: ${{ env.ZIP_NAME_EDGE }}
|
||||
|
||||
- name: Upload zip
|
||||
id: upload-zip
|
||||
uses: actions/upload-release-asset@v1
|
||||
@@ -155,15 +142,3 @@ jobs:
|
||||
asset_path: ${{ env.ZIP_NAME }}
|
||||
asset_name: ${{ env.ZIP_NAME }}
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: Upload Edge binary
|
||||
if: contains(matrix.os, 'windows')
|
||||
id: upload-edge-binary
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
||||
asset_path: ${{ env.ZIP_NAME_EDGE }}
|
||||
asset_name: ${{ env.ZIP_NAME_EDGE }}
|
||||
asset_content_type: application/zip
|
||||
|
||||
Reference in New Issue
Block a user