Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
akiyosi committed Nov 18, 2023
1 parent 843c10b commit cbf44b1
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 61 deletions.
104 changes: 52 additions & 52 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -660,55 +660,55 @@ jobs:
############################################


test-and-build-freebsd:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Build for freeBSD
uses: cross-platform-actions/action@v0.13.0
env:
GOPATH: /home/runner/go
QT_PKG_CONFIG: true
QT_API: 5.13.0
QT_DEBUG: false
QT_STATIC: true
GO111MODULE: on
GOPROXY: https://goproxy.io
CGO_CPPFLAGS: '-O3 -Wno-deprecated'
with:
environment_variables: GOPATH QT_PKG_CONFIG QT_API QT_DEBUG QT_STATIC GO111MODULE GOPROXY
operating_system: freebsd
architecture: x86_64
version: '13.2'
shell: bash
memory: 12G
cpu_count: 4
run: |
yes | sudo pkg install git go pkgconf
yes | sudo pkg install devel/qt5
yes | sudo pkg install gmake
gmake qt_bindings
gmake deps
gmake test
gmake app
- name: check dir
run: |
pwd
ls -l cmd/goneovim/deploy/freebsd
- name: Archive
run: |
cd cmd/goneovim/deploy
mv freebsd goneovim-freebsd
tar -jcvf goneovim-freebsd.tar.bz2 goneovim-freebsd
- name: Upload for freebsd
uses: actions/upload-artifact@v1
with:
name: goneovim-freebsd
path: ${{ github.workspace }}/cmd/goneovim/deploy/goneovim-freebsd.tar.bz2
# test-and-build-freebsd:
# runs-on: macos-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
#
# - name: Build for freeBSD
# uses: cross-platform-actions/action@v0.13.0
# env:
# GOPATH: /home/runner/go
# QT_PKG_CONFIG: true
# QT_API: 5.13.0
# QT_DEBUG: false
# QT_STATIC: true
# GO111MODULE: on
# GOPROXY: https://goproxy.io
# CGO_CPPFLAGS: '-O3 -Wno-deprecated'
# with:
# environment_variables: GOPATH QT_PKG_CONFIG QT_API QT_DEBUG QT_STATIC GO111MODULE GOPROXY
# operating_system: freebsd
# architecture: x86_64
# version: '13.2'
# shell: bash
# memory: 12G
# cpu_count: 4
# run: |
# yes | sudo pkg install git go pkgconf
# yes | sudo pkg install devel/qt5
# yes | sudo pkg install gmake
# gmake qt_bindings
# gmake deps
# gmake test
# gmake app
#
# - name: check dir
# run: |
# pwd
# ls -l cmd/goneovim/deploy/freebsd
#
# - name: Archive
# run: |
# cd cmd/goneovim/deploy
# mv freebsd goneovim-freebsd
# tar -jcvf goneovim-freebsd.tar.bz2 goneovim-freebsd
#
# - name: Upload for freebsd
# uses: actions/upload-artifact@v1
# with:
# name: goneovim-freebsd
# path: ${{ github.workspace }}/cmd/goneovim/deploy/goneovim-freebsd.tar.bz2
18 changes: 9 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,23 +345,23 @@ jobs:
path: ./src/github.com/${{ github.repository }}

- name: Retrieve version
id: version-macos-11
id: version-macos
run: |
cd ${{ github.workspace }}/src/github.com/${{ github.repository }}
echo "::set-output name=GONEOVIM_VERSION::$(git describe --tags)"
echo "::set-output name=GONEOVIM_VERSION_HASH::$(git rev-parse HEAD)"
- name: test version
run: |
echo ${{ steps.version-macos-11.outputs.GONEOVIM_VERSION }}
echo ${{ steps.version-macos.outputs.GONEOVIM_VERSION }}
# - uses: actions/cache@v2
# id: cache-qt-bindings-macos-11
# id: cache-qt-bindings-macos
# with:
# path: ${{ github.workspace }}/src/github.com/akiyosi/qt/*
# key: ${{ matrix.qtversion }}-qtbindings-macos-11-${{ env.cache-version }}
# key: ${{ matrix.qtversion }}-qtbindings-macos-${{ env.cache-version }}

#if: ${{ steps.cache-qt-bindings-macos-11.outputs.cache-hit != 'true' }}
#if: ${{ steps.cache-qt-bindings-macos.outputs.cache-hit != 'true' }}

- name: Generate Qt bindings
continue-on-error: true
Expand All @@ -381,8 +381,8 @@ jobs:
$(go env GOPATH)/bin/qtdeploy build desktop ./cmd/goneovim
cp -pR runtime ./cmd/goneovim/deploy/darwin/goneovim.app/Contents/Resources/
cd ${{ github.workspace }}/src/github.com/${{ github.repository }}/
/usr/libexec/PlistBuddy -c "Add :CFBundleVersion string ${{ steps.version-macos-11.outputs.GONEOVIM_VERSION_HASH }}" "./cmd/goneovim/deploy/darwin/goneovim.app/Contents/Info.plist"
/usr/libexec/PlistBuddy -c "Add :CFBundleShortVersionString string ${{ steps.version-macos-11.outputs.GONEOVIM_VERSION }}" "./cmd/goneovim/deploy/darwin/goneovim.app/Contents/Info.plist"
/usr/libexec/PlistBuddy -c "Add :CFBundleVersion string ${{ steps.version-macos.outputs.GONEOVIM_VERSION_HASH }}" "./cmd/goneovim/deploy/darwin/goneovim.app/Contents/Info.plist"
/usr/libexec/PlistBuddy -c "Add :CFBundleShortVersionString string ${{ steps.version-macos.outputs.GONEOVIM_VERSION }}" "./cmd/goneovim/deploy/darwin/goneovim.app/Contents/Info.plist"
cd ${{ github.workspace }}/src/github.com/${{ github.repository }}/cmd/goneovim/deploy/darwin/goneovim.app/Contents/Frameworks/
rm -fr QtQuick.framework
rm -fr QtVirtualKeyboard.framework
Expand All @@ -392,7 +392,7 @@ jobs:
- if: github.event_name == 'schedule'
run: echo "ARCHIVE_NAME=goneovim-macos" >> $GITHUB_ENV
- if: github.event_name == 'push'
run: echo "ARCHIVE_NAME=goneovim-${{ steps.version-macos-11.outputs.GONEOVIM_VERSION }}-macos" >> $GITHUB_ENV
run: echo "ARCHIVE_NAME=goneovim-${{ steps.version-macos.outputs.GONEOVIM_VERSION }}-macos" >> $GITHUB_ENV

- name: Archive
run: |
Expand All @@ -411,7 +411,7 @@ jobs:
strategy:
matrix:
go-version: [1.21.x]
platform: [macos-11]
platform: [macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
Expand Down

0 comments on commit cbf44b1

Please sign in to comment.