-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not use latest operating systems for builds
- Loading branch information
Showing
1 changed file
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,54 +12,54 @@ jobs: | |
build-linux: | ||
permissions: write-all | ||
name: linux | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update Libs | ||
run: sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev && sudo apt-get install libudev-dev && cargo install cargo-bundle | ||
- name: Build | ||
run: cargo bundle --release | ||
# - name: Compress. | ||
# run: ls target/release/bundle/deb && cd target/release/bundle/deb && zip rust-serial-monitor.deb.zip *.deb | ||
- name: Rename | ||
run: ls target/release/bundle/deb && cd target/release/bundle/deb && mv *.deb rust-serial-monitor.deb | ||
- name: Upload Deb | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./target/release/bundle/deb/rust-serial-monitor.deb | ||
asset_name: rust-serial-monitor-linux_x86.deb | ||
asset_content_type: binary | ||
- uses: actions/checkout@v3 | ||
- name: Update Libs | ||
run: sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev && sudo apt-get install libudev-dev && cargo install cargo-bundle | ||
- name: Build | ||
run: cargo bundle --release | ||
# - name: Compress. | ||
# run: ls target/release/bundle/deb && cd target/release/bundle/deb && zip rust-serial-monitor.deb.zip *.deb | ||
- name: Rename | ||
run: ls target/release/bundle/deb && cd target/release/bundle/deb && mv *.deb rust-serial-monitor.deb | ||
- name: Upload Deb | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./target/release/bundle/deb/rust-serial-monitor.deb | ||
asset_name: rust-serial-monitor-linux_x86.deb | ||
asset_content_type: binary | ||
|
||
build-macos: | ||
permissions: write-all | ||
name: macos | ||
runs-on: macos-latest | ||
runs-on: macos-11 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update Libs | ||
run: cargo install cargo-bundle | ||
- name: Build | ||
run: cargo bundle --release | ||
- name: Compress | ||
run: cd target/release/bundle/osx && ls && zip -r rust-serial-monitor.app.zip Serial\ Monitor.app/* | ||
- name: Upload | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./target/release/bundle/osx/rust-serial-monitor.app.zip | ||
asset_name: rust-serial-monitor-macos_x86.app.zip | ||
asset_content_type: binary | ||
- uses: actions/checkout@v3 | ||
- name: Update Libs | ||
run: cargo install cargo-bundle | ||
- name: Build | ||
run: cargo bundle --release | ||
- name: Compress | ||
run: cd target/release/bundle/osx && ls && zip -r rust-serial-monitor.app.zip Serial\ Monitor.app/* | ||
- name: Upload | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./target/release/bundle/osx/rust-serial-monitor.app.zip | ||
asset_name: rust-serial-monitor-macos_x86.app.zip | ||
asset_content_type: binary | ||
|
||
build-windows: | ||
permissions: write-all | ||
name: windows | ||
runs-on: windows-latest | ||
steps: | ||
permissions: write-all | ||
name: windows | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update Libs | ||
run: cargo install cargo-wix | ||
|