with '#' will be ignored, and an empty message aborts the commit. Author: Ethan Alicea <64653625+Tech-Gamer@users.noreply.github.com> On branch develop Your branch is up to date with 'origin/develop'. Changes to be committed: modified: .github/workflows/push.yaml modified: .github/workflows/release.yaml modified: CHANGELOG.md modified: Dockerfile modified: Makefile modified: README.md modified: cmd/configure.go modified: cmd/diagnostics.go modified: cmd/root.go modified: config/config.go modified: environment/allocations.go modified: environment/docker.go modified: environment/docker/api.go modified: environment/docker/container.go modified: environment/docker/environment.go modified: environment/docker/power.go modified: environment/docker/stats.go modified: environment/environment.go modified: environment/settings.go modified: events/events.go modified: go.mod modified: internal/cron/activity_cron.go modified: internal/cron/cron.go modified: internal/cron/sftp_cron.go modified: internal/database/database.go modified: internal/progress/progress.go modified: internal/progress/progress_test.go modified: loggers/cli/cli.go new file: oryxBuildBinary modified: parser/parser.go modified: remote/http.go modified: remote/servers.go modified: remote/types.go modified: router/downloader/downloader.go modified: router/middleware.go modified: router/middleware/middleware.go modified: router/middleware/request_error.go modified: router/router.go modified: router/router_download.go modified: router/router_server.go modified: router/router_server_backup.go modified: router/router_server_files.go modified: router/router_server_transfer.go modified: router/router_server_ws.go modified: router/router_system.go modified: router/router_transfer.go modified: router/tokens/parser.go modified: router/websocket/listeners.go modified: router/websocket/websocket.go modified: server/activity.go modified: server/backup.go modified: server/backup/backup.go modified: server/backup/backup_local.go modified: server/backup/backup_s3.go modified: server/configuration.go modified: server/console.go modified: server/crash.go modified: server/events.go modified: server/filesystem/archive.go modified: server/filesystem/filesystem.go modified: server/filesystem/filesystem_test.go modified: server/install.go modified: server/installer/installer.go modified: server/listeners.go modified: server/manager.go modified: server/mounts.go modified: server/power.go modified: server/power_test.go modified: server/resources.go modified: server/server.go modified: server/transfer/archive.go modified: server/transfer/source.go modified: server/transfer/transfer.go modified: server/update.go modified: sftp/event.go modified: sftp/handler.go modified: sftp/server.go modified: wings.go
76 lines
1.9 KiB
YAML
76 lines
1.9 KiB
YAML
name: Push
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
|
|
jobs:
|
|
build-and-test:
|
|
name: Build and Test
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-22.04]
|
|
go: ["1.19.11", "1.20.6"]
|
|
goos: [linux]
|
|
goarch: [amd64, arm64]
|
|
|
|
steps:
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
|
|
- name: Code checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: go mod download
|
|
env:
|
|
CGO_ENABLED: 0
|
|
run: |
|
|
go mod download
|
|
|
|
- name: Build
|
|
env:
|
|
GOOS: ${{ matrix.goos }}
|
|
GOARCH: ${{ matrix.goarch }}
|
|
CGO_ENABLED: 0
|
|
SRC_PATH: github.com/Tech-Gamer/nwy-wings
|
|
run: |
|
|
go build -v -trimpath -ldflags="-s -w -X ${SRC_PATH}/system.Version=dev-${GIT_COMMIT:0:7}" -o dist/wings ${SRC_PATH}
|
|
go build -v -trimpath -ldflags="-X ${SRC_PATH}/system.Version=dev-${GIT_COMMIT:0:7}" -o dist/wings_debug ${SRC_PATH}
|
|
chmod 755 dist/*
|
|
|
|
- name: go test
|
|
if: ${{ matrix.goarch == 'amd64' }}
|
|
env:
|
|
CGO_ENABLED: 0
|
|
run: |
|
|
go test $(go list ./...)
|
|
|
|
- name: go test -race
|
|
if: ${{ matrix.goarch == 'amd64' }}
|
|
env:
|
|
CGO_ENABLED: 1
|
|
run: |
|
|
go test -race $(go list ./...)
|
|
|
|
- name: Upload Release Artifact
|
|
uses: actions/upload-artifact@v3
|
|
if: ${{ github.ref == 'refs/heads/develop' || github.event_name == 'pull_request' }}
|
|
with:
|
|
name: wings_linux_${{ matrix.goarch }}
|
|
path: dist/wings
|
|
|
|
- name: Upload Debug Artifact
|
|
uses: actions/upload-artifact@v3
|
|
if: ${{ github.ref == 'refs/heads/develop' || github.event_name == 'pull_request' }}
|
|
with:
|
|
name: wings_linux_${{ matrix.goarch }}_debug
|
|
path: dist/wings_debug
|