release #5
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: release | |
on: | |
create: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Install additional targets | |
run: | | |
rustup target add x86_64-unknown-linux-gnu | |
rustup target add x86_64-pc-windows-gnu | |
- name: Install mingw-w64 | |
run: sudo apt-get update && sudo apt-get install -y mingw-w64 | |
- name: Build for Linux | |
run: cargo build --release --target x86_64-unknown-linux-gnu | |
- name: Build for Windows | |
run: cargo build --release --target x86_64-pc-windows-gnu | |
- name: Zip binaries | |
run: | | |
zip -j simple-task-timer-linux-x86_64.zip target/x86_64-unknown-linux-gnu/release/timer | |
zip -j simple-task-timer-windows-x86_64.zip target/x86_64-pc-windows-gnu/release/timer.exe | |
- name: Create release | |
id: create_release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
name: ${{ github.ref_name }} | |
files: | | |
simple-task-timer-linux-x86_64.zip | |
simple-task-timer-windows-x86_64.zip |