diff options
| author | Opportunity <[email protected]> | 2020-07-17 12:38:09 +0800 |
|---|---|---|
| committer | Opportunity <[email protected]> | 2020-07-17 12:38:09 +0800 |
| commit | d02834b3cc34d2331182a91a7196549dce1a9e1d (patch) | |
| tree | f21d524c380348e3afba89bdd0b38a42d4b527a6 | |
| parent | 722d3af61d12dcb05580f6c609c4d13f662e17f1 (diff) | |
Revert "fix build"
This reverts commit 722d3af61d12dcb05580f6c609c4d13f662e17f1.
| -rw-r--r-- | .github/workflows/linux.yml | 54 | ||||
| -rw-r--r-- | .github/workflows/macos.yml | 115 | ||||
| -rw-r--r-- | .github/workflows/windows.yml (renamed from .github/workflows/build.yml) | 164 |
3 files changed, 173 insertions, 160 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 000000000..cc058266b --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,54 @@ +name: Linux + +on: + pull_request: + push: + release: + types: published + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: ${{ github.repository }}#sha@${{ github.sha }} + - uses: mihails-strasuns/[email protected] + with: + compiler: dmd-latest + - uses: olegtarasov/get-tag@v2 + id: tagName + + # tests + - name: tests + run: | + xmake lua -v -D tests/run.lua + + # build artifacts + - name: artifact + run: | + sudo apt-get install -y ruby ruby-dev rubygems build-essential + sudo gem install --no-document fpm + git submodule update --init + scripts/makepkg deb + # upload artifacts + - uses: actions/upload-artifact@v2 + with: + name: xmake-latest.amd64.deb + path: artifacts/xmake.deb + + # publish release + - name: publish + if: github.event.action == 'published' + uses: actions/[email protected] + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: artifacts/xmake.deb + asset_name: xmake-${{ steps.tagName.outputs.tag }}.amd64.deb + asset_content_type: application/zip + diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 000000000..736844b0f --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,115 @@ +name: macOS + +on: + pull_request: + push: + release: + types: published + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v1 + - uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: ${{ github.repository }}#sha@${{ github.sha }} + - uses: mihails-strasuns/[email protected] + with: + compiler: dmd-latest + - uses: olegtarasov/get-tag@v2 + id: tagName + + # tests + - name: tests + run: | + xmake lua -v -D tests/run.lua + + # build artifacts + - name: artifact + run: | + brew install gnu-tar + gem install --no-document fpm + git submodule update --init + scripts/makepkg osxpkg + scripts/archive-all + scripts/makeself/build-runfile.sh + # upload artifacts + - uses: actions/upload-artifact@v2 + with: + name: xmake-latest.macosx.pkg + path: artifacts/xmake.pkg + - uses: actions/upload-artifact@v2 + with: + name: xmake-latest.gz.run + path: artifacts/xmake.gz.run + - uses: actions/upload-artifact@v2 + with: + name: xmake-latest.xz.run + path: artifacts/xmake.xz.run + - uses: actions/upload-artifact@v2 + with: + name: xmake-latest.tar.gz + path: artifacts/xmake.tar.gz + - uses: actions/upload-artifact@v2 + with: + name: xmake-latest.zip + path: artifacts/xmake.zip + + # publish release + - name: publish + if: github.event.action == 'published' + uses: actions/[email protected] + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: artifacts/xmake.pkg + asset_name: xmake-${{ steps.tagName.outputs.tag }}.macosx.pkg + asset_content_type: application/zip + + - name: publish + if: github.event.action == 'published' + uses: actions/[email protected] + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: artifacts/xmake.gz.run + asset_name: xmake-${{ steps.tagName.outputs.tag }}.gz.run + asset_content_type: application/zip + + - name: publish + if: github.event.action == 'published' + uses: actions/[email protected] + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: artifacts/xmake.xz.run + asset_name: xmake-${{ steps.tagName.outputs.tag }}.xz.run + asset_content_type: application/zip + + - name: publish + if: github.event.action == 'published' + uses: actions/[email protected] + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: artifacts/xmake.tar.gz + asset_name: xmake-${{ steps.tagName.outputs.tag }}.tar.gz + asset_content_type: application/zip + + - name: publish + if: github.event.action == 'published' + uses: actions/[email protected] + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: artifacts/xmake.zip + asset_name: xmake-${{ steps.tagName.outputs.tag }}.zip + asset_content_type: application/zip diff --git a/.github/workflows/build.yml b/.github/workflows/windows.yml index fbaba5a56..9cce0ae20 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/windows.yml @@ -1,169 +1,13 @@ -name: build +name: Windows on: pull_request: push: release: - types: [published] + types: published jobs: - - - Linux: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - uses: xmake-io/github-action-setup-xmake@v1 - with: - xmake-version: local# - - uses: mihails-strasuns/[email protected] - with: - compiler: dmd-latest - - uses: olegtarasov/get-tag@v2 - id: tagName - - # tests - - name: tests - run: | - xmake lua -v -D tests/run.lua - - # build artifacts - - name: artifact - run: | - sudo apt-get install -y ruby ruby-dev rubygems build-essential - sudo gem install --no-document fpm - git submodule update --init - scripts/makepkg deb - # upload artifacts - - uses: actions/upload-artifact@v2 - with: - name: xmake-latest.amd64.deb - path: artifacts/xmake.deb - - # publish release - - name: publish - if: github.event.action == 'published' - uses: actions/[email protected] - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: artifacts/xmake.deb - asset_name: xmake-${{ steps.tagName.outputs.tag }}.amd64.deb - asset_content_type: application/zip - - - macOS: - - runs-on: macos-latest - - steps: - - uses: actions/checkout@v1 - - uses: xmake-io/github-action-setup-xmake@v1 - with: - xmake-version: local# - - uses: mihails-strasuns/[email protected] - with: - compiler: dmd-latest - - uses: olegtarasov/get-tag@v2 - id: tagName - - # tests - - name: tests - run: | - xmake lua -v -D tests/run.lua - - # build artifacts - - name: artifact - run: | - brew install gnu-tar - gem install --no-document fpm - git submodule update --init - scripts/makepkg osxpkg - scripts/archive-all - scripts/makeself/build-runfile.sh - # upload artifacts - - uses: actions/upload-artifact@v2 - with: - name: xmake-latest.macosx.pkg - path: artifacts/xmake.pkg - - uses: actions/upload-artifact@v2 - with: - name: xmake-latest.gz.run - path: artifacts/xmake.gz.run - - uses: actions/upload-artifact@v2 - with: - name: xmake-latest.xz.run - path: artifacts/xmake.xz.run - - uses: actions/upload-artifact@v2 - with: - name: xmake-latest.tar.gz - path: artifacts/xmake.tar.gz - - uses: actions/upload-artifact@v2 - with: - name: xmake-latest.zip - path: artifacts/xmake.zip - - # publish release - - name: publish - if: github.event.action == 'published' - uses: actions/[email protected] - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: artifacts/xmake.pkg - asset_name: xmake-${{ steps.tagName.outputs.tag }}.macosx.pkg - asset_content_type: application/zip - - - name: publish - if: github.event.action == 'published' - uses: actions/[email protected] - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: artifacts/xmake.gz.run - asset_name: xmake-${{ steps.tagName.outputs.tag }}.gz.run - asset_content_type: application/zip - - - name: publish - if: github.event.action == 'published' - uses: actions/[email protected] - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: artifacts/xmake.xz.run - asset_name: xmake-${{ steps.tagName.outputs.tag }}.xz.run - asset_content_type: application/zip - - - name: publish - if: github.event.action == 'published' - uses: actions/[email protected] - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: artifacts/xmake.tar.gz - asset_name: xmake-${{ steps.tagName.outputs.tag }}.tar.gz - asset_content_type: application/zip - - - name: publish - if: github.event.action == 'published' - uses: actions/[email protected] - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: artifacts/xmake.zip - asset_name: xmake-${{ steps.tagName.outputs.tag }}.zip - asset_content_type: application/zip - - - Windows: + build: strategy: matrix: arch: [x64, x86] @@ -175,7 +19,7 @@ jobs: - uses: xmake-io/github-action-setup-xmake@v1 with: # this is not supported, use dev branch instead - # xmake-version: local# + # xmake-version: ${{ github.repository }}#sha@${{ github.sha }} xmake-version: branch@dev - uses: mihails-strasuns/[email protected] with: |
