ci.yml 670 B

123456789101112131415161718192021222324252627
  1. name: ci
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. strategy:
  6. fail-fast: false
  7. matrix:
  8. os: [ubuntu-latest, windows-latest, macos-latest]
  9. runs-on: ${{ matrix.os }}
  10. steps:
  11. - uses: actions/checkout@v3
  12. - uses: actions/setup-go@v3
  13. with:
  14. go-version: '^1.19'
  15. - name: Build
  16. run: go build .
  17. - uses: actions/upload-artifact@v3
  18. if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
  19. with:
  20. name: discordo_${{ runner.os }}_${{ runner.arch }}
  21. path: |
  22. discordo
  23. discordo.exe