ci.yml 725 B

12345678910111213141516171819202122232425262728293031
  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. <<<<<<< HEAD
  17. run: make
  18. =======
  19. run: go build .
  20. >>>>>>> rewrite
  21. - uses: actions/upload-artifact@v3
  22. if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
  23. with:
  24. name: discordo_${{ runner.os }}_${{ runner.arch }}
  25. path: |
  26. discordo
  27. discordo.exe