diff --git a/.github/workflows/choco-release.yml b/.github/workflows/choco-release.yml index 8aaba8cc27..d29595e03d 100644 --- a/.github/workflows/choco-release.yml +++ b/.github/workflows/choco-release.yml @@ -21,17 +21,12 @@ jobs: uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} - - name: Build the chocolatey package - run: make choco - - name: Add api key for choco community feed - shell: pwsh - env: - CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }} - run: choco apikey --key "$env:CHOCO_API_KEY" --source https://push.chocolatey.org/ - - name: Push the choco to community.chocolatey.org - run: choco push ./packaging/chocolatey/crc/*.nupkg --source https://push.chocolatey.org/ - - name: Upload nupkg artifact - uses: actions/upload-artifact@v3 - with: - name: crc-chocolatey-nupkg-${{ github.event.release.tag_name }} - path: "./packaging/chocolatey/crc/*.nupkg" + - name: env test + env: + ENV_TEST: ${{ github.event.release.tag_name }} + run: echo ${ENV_TEST} + - name: env test2 + run: echo ${GITHUB_REF_NAME}; echo $GITHUB_REF_NAME + shell: bash + - name: event test + run: echo "${{ github.event.release.tag_name }}" diff --git a/.github/workflows/macos-installer.yml b/.github/workflows/macos-installer.yml deleted file mode 100644 index 1d1feac116..0000000000 --- a/.github/workflows/macos-installer.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Build macOS installer -on: - push: - branches: - - "main" - pull_request: {} - workflow_dispatch: - inputs: - debug_enabled: - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' - required: false - default: false -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - macOS-latest - - macOS-11 - go: - - 1.19 - steps: - # Enable tmate debugging of manually-triggered workflows if the input option was provided - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} - with: - limit-access-to-actor: true - timeout-minutes: 30 - - name: Check out repository code - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go }} - - name: Build macOS installer - run: make NO_CODESIGN=1 out/macos-universal/crc-macos-installer.pkg - - name: Upload macOS installer artifact - uses: actions/upload-artifact@v3 - with: - name: macOS Installer (${{ matrix.os }}) - path: "./out/macos-universal/crc-macos-installer.pkg" - - name: Install crc pkg - run: sudo installer -pkg out/macos-universal/crc-macos-installer.pkg -target / - - name: Set podman preset as part of config - run: crc config set preset podman - - name: Run crc setup command - run: crc setup - - name: Wait 10 sec for the daemon to serve - run: sleep 10 - - name: Run crc with podman preset - run: crc start diff --git a/.github/workflows/macos-microshift.yml b/.github/workflows/macos-microshift.yml deleted file mode 100644 index f9846c4cb7..0000000000 --- a/.github/workflows/macos-microshift.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Test MicroShift preset -on: - push: - branches: - - "main" - pull_request: {} - workflow_dispatch: - inputs: - debug_enabled: - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' - required: false - default: false -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - macOS-latest - - macOS-11 - go: - - 1.19 - steps: - # Enable tmate debugging of manually-triggered workflows if the input option was provided - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} - with: - limit-access-to-actor: true - timeout-minutes: 30 - - name: Check out repository code - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go }} - - name: Build macOS installer - run: make NO_CODESIGN=1 out/macos-universal/crc-macos-installer.pkg - - name: Install crc pkg - run: sudo installer -pkg out/macos-universal/crc-macos-installer.pkg -target / - - name: Set microshift preset as part of config - run: crc config set preset microshift - - name: Create dummy pull secret - run: | - echo '{"auths":{"quay.io":{"auth":"b3BlbnN","email":"dummy@dummy.com"}}}' > dummy_pull.json - - name: Run crc setup command - run: crc setup - - name: Wait 10 sec for the daemon to serve - run: sleep 10 - - name: Run crc with microshift preset - run: crc start --pull-secret-file dummy_pull.json - - name: check if podman binary is symlinked correctly - run: | - eval $(crc podman-env) && podman pull quay.io/crc-org/crc-extension:latest - - name: check if oc binary is symlinked correctly - run: | - eval $(crc oc-env) && oc get pods -A diff --git a/.github/workflows/make-check-win.yml b/.github/workflows/make-check-win.yml deleted file mode 100644 index e02e64b38d..0000000000 --- a/.github/workflows/make-check-win.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Run 'make check' on Windows -on: - push: - branches: - - "main" - pull_request: {} -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - windows-2019 - - windows-2022 - go: - - 1.19 - steps: - - name: Downgrade mingw to workaround https://github.com/golang/go/issues/46099 - run: choco install mingw --version 10.2.0 --allow-downgrade - - name: Check out repository code - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go }} - - name: Disable gofmt/goimports linters on Windows - run: sed -i "/gofmt/d" .golangci.yml && sed -i "/goimports/d" .golangci.yml - shell: bash - - name: make check - run: make check diff --git a/.github/workflows/make-check.yml b/.github/workflows/make-check.yml deleted file mode 100644 index 242596c472..0000000000 --- a/.github/workflows/make-check.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Run 'make check' -on: - push: - branches: - - "main" - pull_request: {} -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - macOS-11 - - macOS-latest - - ubuntu-latest - - ubuntu-20.04 - go: - - 1.19 - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go }} - - name: Build - run: make check diff --git a/.github/workflows/make-rpm.yml b/.github/workflows/make-rpm.yml deleted file mode 100644 index 5fb344aa54..0000000000 --- a/.github/workflows/make-rpm.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Build RPM -on: - push: - branches: - - "main" - pull_request: {} -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - ubuntu-latest - go: - - 1.19 - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go }} - - name: Build rpm - run: CONTAINER_RUNTIME=docker make test-rpmbuild - - name: Upload linux binary and rpms - uses: actions/upload-artifact@v3 - with: - name: linux binary and rpm - path: | - ./crc - ./RPMS diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml deleted file mode 100644 index 78d1a67a40..0000000000 --- a/.github/workflows/publish-docs.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Build and publish docs -on: - push: - branches: - - "main" - pull_request: {} -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - ubuntu-latest - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - name: Build docs - run: CONTAINER_RUNTIME=docker make build_docs - - name: Check links in docs - run: CONTAINER_RUNTIME=docker make docs_check_links - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - if: github.ref == 'refs/heads/main' - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs/build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index cc49283fbf..0000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Publish release on github -on: - workflow_dispatch: -jobs: - publish_release: - runs-on: ubuntu-latest - steps: - - name: Check out repository code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Prepare empty notable changes - run: touch notable_changes.txt - - name: Run gh-release.sh - run: NONINTERACTIVE=1 ./gh-release.sh - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/windows-chocolatey.yml b/.github/workflows/windows-chocolatey.yml deleted file mode 100755 index cb89653f2c..0000000000 --- a/.github/workflows/windows-chocolatey.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Build Windows chocolatey -on: - push: - branches: - - "main" - pull_request: {} -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - windows-2022 - go: - - 1.19 - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go }} - - name: Build the chocolatey package - run: make choco - - name: Upload nupkg artifact - uses: actions/upload-artifact@v3 - with: - name: crc-chocolatey-nupkg - path: "./packaging/chocolatey/crc/*.nupkg" diff --git a/.github/workflows/windows-installer.yml b/.github/workflows/windows-installer.yml deleted file mode 100644 index 357a052293..0000000000 --- a/.github/workflows/windows-installer.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Build Windows installer -on: - push: - branches: - - "main" - pull_request: {} -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - windows-2019 - - windows-2022 - go: - - 1.19 - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go }} - - name: Set path for heat.exe and light.exe - run: echo "$WIX\\bin" >>$GITHUB_PATH - shell: bash - - name: Build Windows installer - run: make out/windows-amd64/crc-windows-installer.zip - - name: Upload windows installer artifact - uses: actions/upload-artifact@v3 - with: - name: Windows Installer (${{ matrix.os }}) - path: "./out/windows-amd64/crc-windows-installer.zip"