File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build for x64 ubuntu
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ tags :
8+ - uuu*
9+ pull_request :
10+ types :
11+ - opened
12+ - synchronize
13+
14+ jobs :
15+ build :
16+ name : Build with Ubuntu 20.04 Docker
17+
18+ steps :
19+ - name : Checkout repository
20+ uses : actions/checkout@v3
21+ with :
22+ fetch-depth : 0
23+
24+ - name : Build
25+ run : |
26+ git fetch --tags --force # Retrieve annotated tags. #issue 290
27+ if [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then git submodule update --init tinyxml2; cd tinyxml2;
28+
29+ docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace -e DEBIAN_FRONTEND=noninteractive -e TZ=UTC ubuntu:20.04 bash -c "
30+ apt-get update &&
31+ apt-get --yes --force-yes install libusb-1.0-0-dev libbz2-dev libzstd-dev libtinyxml2-dev
32+ git config --global --add safe.directory /workspace &&
33+ cd tinyxml2 && cmake . && make && cd .. &&
34+ cmake -D 'STATIC=1' -D 'FORCE_OLD=on' . && make"
35+
36+ - name : Copy
37+ run : |
38+ cp ./uuu/uuu ./uuu/uuu-ubuntu20.04
39+
40+ - name : Upload Build Artifacts
41+ uses : actions/upload-artifact@v4
42+ with :
43+ name : uuu-ubuntu-20.04
44+ path : ./uuu/uuu-ubuntu20.04
45+
46+ - name : Create or Update Release
47+ uses : ncipollo/release-action@v1
48+ with :
49+ name : Release ${{ github.ref_name }}
50+ tag : ${{ github.ref_name }}
51+ commit : ${{ github.sha }}
52+ allowUpdates : true
53+ prerelease : true
54+ artifacts : " ./uuu/uuu-ubuntu20.04"
You can’t perform that action at this time.
0 commit comments