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 /.github/workflows/linux.yml | |
| parent | 722d3af61d12dcb05580f6c609c4d13f662e17f1 (diff) | |
Revert "fix build"
This reverts commit 722d3af61d12dcb05580f6c609c4d13f662e17f1.
Diffstat (limited to '.github/workflows/linux.yml')
| -rw-r--r-- | .github/workflows/linux.yml | 54 |
1 files changed, 54 insertions, 0 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 + |
