blob: bdd425bad43266d8f94df4b004ed79babde8056a (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
name: build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: xmake-io/github-action-setup-xmake@v1
if: matrix.os != 'windows-latest' || github.event_name == 'push'
with:
xmake-version: sha@${{ github.sha }}
- uses: xmake-io/github-action-setup-xmake@v1
# this is not supported, use dev branch instead
if: matrix.os == 'windows-latest' && github.event_name == 'pull_request'
with:
xmake-version: branch@dev
- uses: mihails-strasuns/[email protected]
with:
compiler: dmd-latest
# tests
- name: tests
run: |
xmake lua -v -D tests/run.lua
# build artifacts
- name: artifact
if: matrix.os == 'macOS-latest'
run: |
brew install gnu-tar
gem install --no-document fpm
git submodule update --init
scripts/makepkg osxpkg latest
scripts/archive-all
scripts/makeself/build-runfile.sh
- name: artifact
if: matrix.os == 'ubuntu-latest'
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
if: matrix.os == 'macOS-latest'
with:
name: xmake-latest.macosx.pkg
path: xmake-latest.pkg
- uses: actions/upload-artifact@v2
if: matrix.os == 'ubuntu-latest'
with:
name: xmake-latest.amd64.deb
path: xmake_latest_amd64.deb
- uses: actions/upload-artifact@v2
if: matrix.os == 'macOS-latest'
with:
name: xmake-latest.gz.run
path: artifacts/xmake.gz.run
- uses: actions/upload-artifact@v2
if: matrix.os == 'macOS-latest'
with:
name: xmake-latest.xz.run
path: artifacts/xmake.xz.run
- uses: actions/upload-artifact@v2
if: matrix.os == 'macOS-latest'
with:
name: xmake-latest.tar.gz
path: artifacts/xmake.tar.gz
- uses: actions/upload-artifact@v2
if: matrix.os == 'macOS-latest'
with:
name: xmake-latest.zip
path: artifacts/xmake.zip
|