Update actions/upload-artifact action to v4 #99
Workflow file for this run
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
name: Rust Release Builds | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y libfltk1.3-dev libfltk-gl1.3 xorg-dev libpango1.0-dev librust-pangocairo-dev libpangoxft-1.0 libwayland-dev libxkbcommon-dev libdbus-1-dev | |
- name: Build | |
run: cargo build --release --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Upload binary | |
uses: actions/upload-artifact@v4 | |
with: | |
name: scrappy-linux | |
path: target/release/scrappy | |
windows: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Build | |
run: cargo build --release --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Upload binary | |
uses: actions/upload-artifact@v4 | |
with: | |
name: scrappy-windows.exe | |
path: target/release/scrappy.exe | |
release: | |
runs-on: ubuntu-latest | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- windows | |
- linux | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: actions/download-artifact@v3 | |
with: | |
path: .binaries/ | |
- name: Do Release | |
uses: cycjimmy/semantic-release-action@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
semantic_version: 17.1.1 | |
dry_run: ${{ github.ref != 'refs/heads/master' }} | |
extra_plugins: | | |
@google/semantic-release-replace-plugin | |
@semantic-release/git | |
conventional-changelog-ember |