Skip to content

implement item indexes in timeline list #272

implement item indexes in timeline list

implement item indexes in timeline list #272

Workflow file for this run

name: Build Fedra
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- name: Install CMake, Ninja, and Pandoc
run: |
choco install cmake ninja pandoc minisign -y
- name: Clone wxWidgets
run: git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets.git
- name: Build
run: |
$env:WXWIDGETS_DIR = "${{ github.workspace }}\wxWidgets"
cargo release
- name: Sign artifacts
shell: pwsh
env:
MINISIGN_KEY: ${{ secrets.MINISIGN_KEY }}
MINISIGN_PASSWORD: ${{ secrets.MINISIGN_PASSWORD }}
run: |
$keyPath = Join-Path $env:RUNNER_TEMP "fedra.key"
[IO.File]::WriteAllText($keyPath, $env:MINISIGN_KEY)
$pwPath = Join-Path $env:RUNNER_TEMP "fedra.pw"
[IO.File]::WriteAllText($pwPath, $env:MINISIGN_PASSWORD)
Get-Content $pwPath | minisign -S -s $keyPath -m target/release/fedra_setup.exe
Get-Content $pwPath | minisign -S -s $keyPath -m target/release/fedra.zip
Remove-Item $keyPath, $pwPath
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: fedra-build
path: |
target/release/fedra.zip
target/release/fedra.zip.minisig
target/release/fedra_setup.exe
target/release/fedra_setup.exe.minisig
retention-days: 30
- name: Get latest tag reachable from HEAD
id: get_tag
shell: bash
run: |
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
echo "tag=$TAG" >> $GITHUB_OUTPUT
- name: Generate release notes
id: release_notes
shell: bash
run: |
PREV_TAG="${{ steps.get_tag.outputs.tag }}"
if [ -z "$PREV_TAG" ]; then
COMMITS=$(git log -1 --pretty=format:"- %h: %s" HEAD)
else
COMMITS=$(git log --pretty=format:"- %h: %s" "$PREV_TAG"..HEAD)
fi
COMMITS="${COMMITS//'%'/'%25'}"
echo "commits<<EOF" >> $GITHUB_OUTPUT
echo "$COMMITS" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create or update latest release
uses: softprops/action-gh-release@v1
with:
tag_name: latest
name: Development Build
body: |
## Commits since last release
${{ steps.release_notes.outputs.commits }}
files: |
target/release/fedra.zip
target/release/fedra.zip.minisig
target/release/fedra_setup.exe
target/release/fedra_setup.exe.minisig
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}