feat: v0.11.0 - EZ Tools CSV import with multi-timestamp expansion #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| platform: linux | |
| artifact: 4n6time-linux-amd64 | |
| - os: windows-latest | |
| platform: windows | |
| artifact: 4n6time-windows-amd64 | |
| - os: macos-latest | |
| platform: darwin | |
| artifact: 4n6time-macos-arm64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.26' | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| - name: Install Wails CLI | |
| run: go install github.com/wailsapp/wails/v2/cmd/wails@latest | |
| - name: Install Linux dependencies | |
| if: matrix.platform == 'linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev pkg-config | |
| - name: Install frontend dependencies | |
| run: | | |
| cd frontend | |
| npm install | |
| - name: Build (Linux) | |
| if: matrix.platform == 'linux' | |
| run: wails build -tags webkit2_41 | |
| - name: Build (Windows) | |
| if: matrix.platform == 'windows' | |
| run: wails build | |
| - name: Build (macOS) | |
| if: matrix.platform == 'darwin' | |
| run: wails build | |
| - name: Upload artifact (Linux) | |
| if: matrix.platform == 'linux' | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: build/bin/4n6time | |
| - name: Upload artifact (Windows) | |
| if: matrix.platform == 'windows' | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: build/bin/4n6time.exe | |
| - name: Upload artifact (macOS) | |
| if: matrix.platform == 'darwin' | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: build/bin/4n6time.app | |
| release: | |
| needs: build | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v8 | |
| with: | |
| path: artifacts | |
| - name: Package artifacts | |
| run: | | |
| cd artifacts | |
| tar czf 4n6time-linux-amd64.tar.gz -C 4n6time-linux-amd64 . | |
| zip -j 4n6time-windows-amd64.zip 4n6time-windows-amd64/4n6time.exe | |
| tar czf 4n6time-macos-arm64.tar.gz -C 4n6time-macos-arm64 . | |
| - name: Create release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| artifacts/4n6time-linux-amd64.tar.gz | |
| artifacts/4n6time-windows-amd64.zip | |
| artifacts/4n6time-macos-arm64.tar.gz | |
| generate_release_notes: true |