diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c4e2958 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: Build + +on: + push: + tags: [ 'v*' ] + +jobs: + build: + name: Build on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + + permissions: + contents: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.25' + + - name: Build + run: make qwe + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: qwe-${{ runner.os }} + path: qwe + + - name: Rename for release + run: | + if [ "${{ runner.os }}" = "macOS" ]; then + cp qwe qwe-macos + else + cp qwe qwe-linux + fi + + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: | + qwe-macos + qwe-linux + generate_release_notes: true |
