blob: 57242d1b167163089dc0e3cc9af01ea8f0dd7b54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
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
- 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
|