Skip to content

Commit

Permalink
sdflbnklbnasdfjkln
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfl0wer committed May 15, 2024
1 parent f6fac20 commit 92975d3
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/cross-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
rustup target add ${{ matrix.target }}
cross build --target ${{ matrix.target }} --release
mkdir -p ./artifacts
mv ./target/${{ matrix.target }}/release/stimmgabel ./artifacts/stimmgabel-${{ matrix.target }}-${{ github.event.inputs.tag }}
mv ./target/${{ matrix.target }}/release/stimmgabel ./artifacts/stimmgabel-${{ matrix.target }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: stimmgabel-${{ matrix.target }}-${{ github.event.inputs.tag }}
path: ./artifacts/stimmgabel-${{ matrix.target }}-${{ github.event.inputs.tag }}
name: stimmgabel-${{ matrix.target }}
path: ./artifacts/stimmgabel-${{ matrix.target }}

build-windows:
name: Build and Release for Windows
Expand All @@ -63,13 +63,13 @@ jobs:
run: |
cargo build --target ${{ matrix.target }} --release
mkdir .\artifacts
move .\target\${{ matrix.target }}\release\stimmgabel.exe .\artifacts\stimmgabel-${{ matrix.target }}-${{ github.event.inputs.tag }}.exe
move .\target\${{ matrix.target }}\release\stimmgabel.exe .\artifacts\stimmgabel-${{ matrix.target }}.exe
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: stimmgabel-${{ matrix.target }}-${{ github.event.inputs.tag }}.exe
path: .\artifacts\stimmgabel-${{ matrix.target }}-${{ github.event.inputs.tag }}.exe
name: stimmgabel-${{ matrix.target }}.exe
path: .\artifacts\stimmgabel-${{ matrix.target }}.exe

build-macos:
name: Build and Release for MacOS
Expand All @@ -89,22 +89,19 @@ jobs:
rustup target add ${{ matrix.target }}
cargo build --target ${{ matrix.target }} --release
mkdir -p ./artifacts
mv ./target/${{ matrix.target }}/release/stimmgabel ./artifacts/stimmgabel-${{ matrix.target }}-${{ github.event.inputs.tag }}
mv ./target/${{ matrix.target }}/release/stimmgabel ./artifacts/stimmgabel-${{ matrix.target }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: stimmgabel-${{ matrix.target }}-${{ github.event.inputs.tag }}
path: ./artifacts/stimmgabel-${{ matrix.target }}-${{ github.event.inputs.tag }}
name: stimmgabel-${{ matrix.target }}
path: ./artifacts/stimmgabel-${{ matrix.target }}

release:
name: Release
needs: [build-linux, build-macos, build-windows]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -114,8 +111,8 @@ jobs:
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ github.event.inputs.tag }}"
automatic_release_tag: "latest"
prerelease: false
title: "Release ${{ github.ref }}"
files: |
./artifacts/*
/home/runner/work/stimmgabel/stimmgabel/artifacts/*

0 comments on commit 92975d3

Please sign in to comment.