diff options
| author | ruki <[email protected]> | 2020-06-16 22:46:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-16 10:39:36 +0800 |
| commit | 0d8d98df820f46e2bcfb187105efbbe464cce056 (patch) | |
| tree | 262639957f81f5f45f635ef1558160a65c81d352 /.github/workflows/linux.yml | |
| parent | 6dbfda48d9aa8f84f39b0a16ddd18aa4860c3b50 (diff) | |
improve action ci
Diffstat (limited to '.github/workflows/linux.yml')
| -rw-r--r-- | .github/workflows/linux.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 000000000..af604a6cb --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,41 @@ +name: Linux + +on: + pull_request: + push: + release: + types: published + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v1 + - uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: sha@${{ github.sha }} + - uses: mihails-strasuns/[email protected] + with: + compiler: dmd-latest + # 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 latest + # upload artifacts + - uses: actions/upload-artifact@v2 + with: + name: xmake-latest.amd64.deb + path: xmake_latest_amd64.deb + |
