Compare commits
3
Commits
959b6793da
..
v0.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1337e824e | ||
|
|
51d6e24122 | ||
|
|
066f316dc6 |
No files matched your search
@@ -15,12 +15,16 @@ jobs:
|
||||
go-version-file: go.mod
|
||||
|
||||
# cmd/gui (Fyne) uses cgo and links against the system's OpenGL/X11
|
||||
# libraries, so building or testing ./... needs these present even
|
||||
# though the GUI itself never opens a window in CI.
|
||||
# *and* Wayland libraries (go-gl/glfw compiles in both backends), so
|
||||
# building or testing ./... needs all of these present even though
|
||||
# the GUI itself never opens a window in CI. Found by a real failure
|
||||
# here, not guessed: go vet failed with "wayland-client-core.h: No
|
||||
# such file or directory" when only libgl1-mesa-dev/xorg-dev were
|
||||
# installed.
|
||||
- name: Install system dependencies for the Fyne GUI build
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libgl1-mesa-dev xorg-dev
|
||||
sudo apt-get install -y libgl1-mesa-dev xorg-dev libwayland-dev libxkbcommon-dev
|
||||
|
||||
- name: gofmt
|
||||
run: |
|
||||
|
||||
@@ -63,7 +63,7 @@ jobs:
|
||||
tar czf "../${base}.tar.gz" completed-api completed-tui
|
||||
fi
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ env.PROJECT_NAME }}_${{ matrix.goos }}_${{ matrix.goarch }}
|
||||
path: ${{ env.PROJECT_NAME }}_${{ matrix.goos }}_${{ matrix.goarch }}.*
|
||||
@@ -84,7 +84,7 @@ jobs:
|
||||
include:
|
||||
- goos: linux
|
||||
goarch: amd64
|
||||
packages: libgl1-mesa-dev xorg-dev
|
||||
packages: libgl1-mesa-dev xorg-dev libwayland-dev libxkbcommon-dev
|
||||
- goos: windows
|
||||
goarch: amd64
|
||||
packages: gcc-mingw-w64-x86-64
|
||||
@@ -123,7 +123,7 @@ jobs:
|
||||
tar czf "${base}.tar.gz" completed-gui
|
||||
fi
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ env.PROJECT_NAME }}-gui_${{ matrix.goos }}_${{ matrix.goarch }}
|
||||
path: ${{ env.PROJECT_NAME }}-gui_${{ matrix.goos }}_${{ matrix.goarch }}.*
|
||||
@@ -149,7 +149,7 @@ jobs:
|
||||
- name: Archive
|
||||
run: tar czf ${PROJECT_NAME}-web_dist.tar.gz -C web/dist/web/browser .
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ env.PROJECT_NAME }}-web_dist
|
||||
path: ${{ env.PROJECT_NAME }}-web_dist.tar.gz
|
||||
@@ -191,16 +191,19 @@ jobs:
|
||||
needs: [build-go, build-gui, build-web]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: artifacts
|
||||
merge-multiple: true
|
||||
# v3 has no merge-multiple: downloading all artifacts (no `name`
|
||||
# given) lands each one in its own artifacts/<artifact-name>/
|
||||
# subdirectory, not flattened - hence `find`, not a fixed-depth
|
||||
# glob, in the step below.
|
||||
|
||||
- name: Upload to the Gitea generic package registry
|
||||
env:
|
||||
VERSION: ${{ gitea.ref_name }}
|
||||
run: |
|
||||
for f in artifacts/*; do
|
||||
find artifacts -type f | while read -r f; do
|
||||
name="$(basename "$f")"
|
||||
echo "Uploading $name"
|
||||
curl --fail --user "${{ github.repository_owner }}:${{ secrets.TOKEN }}" \
|
||||
|
||||
Reference in new issue
Block a user