-
Notifications
You must be signed in to change notification settings - Fork 7
75 lines (73 loc) · 1.8 KB
/
build_test_release.yml
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
on:
- pull_request
- push
- release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build setup-watcom
run: |
./build.sh
mv packed/index.js index.js
- name: Archive artifact
uses: actions/upload-artifact@v4
with:
name: action-artifact
if-no-files-found: error
path: |
index.js
test:
name: "OpenWatcom ${{ matrix.version }} on ${{ matrix.runner }}"
needs: build
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner:
- ubuntu-latest
- windows-latest
version:
- "1.8"
- "1.9"
- "2.0"
- "2.0-64"
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: action-artifact
- name: "Run action"
run: |
node index.js
env:
INPUT_VERSION: "${{ matrix.version }}"
INPUT_TAG: ""
INPUT_LOCATION: ""
INPUT_ENVIRONMENT: "true"
- name: Use watcom
run: |
wcl -h
wcl386 -h
release:
name: "Create release"
needs: test
runs-on: "ubuntu-latest"
if: ${{ (github.repository == 'open-watcom/setup-watcom') && (github.ref_name == 'master') }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure user
run: |
git config --global user.name 'Open Watcom'
git config --global user.email '2045606+open-watcom@users.noreply.github.com'
- name: Build setup-watcom
run: |
./build.sh
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Create release
run: |
./release.py v0