-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (52 loc) · 1.76 KB
/
linux-pkg-build.yaml
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
name: linux-pkg-build
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
tags:
- '*'
jobs:
auto-build:
environment: auto-build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: snickerbockers/submodules-init@v4
- name: Build the Docker image
run: |
sudo apt-get update --fix-missing
sudo apt-get install -y -f -o Acquire::Retries=3 cargo libfuse2
docker build -t oapi-build ./docker
docker run --device /dev/fuse --cap-add SYS_ADMIN --privileged=True -v $PWD:/oapi-cli oapi-build /oapi-cli/docker/make.sh cp
sudo chown $(whoami) -R ./docker-package/
./docker-package/oapi-cli-x86_64.AppImage --appimage-extract-and-run --help
./docker-package/oapi-cli-x86_64.AppImage --help
cp docker-package/oapi-cli-x86_64.AppImage .
make tests-appimage
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: ${{ github.event_name != 'push' }}
with:
name: oapi-cli-linux
path: |
oapi-cli-x86_64.AppImage
- name: upload nightly
uses: "marvinpinto/action-automatic-releases@latest"
if: ${{ github.event_name == 'push' }}
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
automatic_release_tag: "nightly-linux"
title: "Linux Development Build"
files: |
oapi-cli-x86_64.AppImage
- name: upload release
uses: "marvinpinto/action-automatic-releases@latest"
if: startsWith(github.ref, 'refs/tags/v')
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ github.ref_name }}"
title: "Linux Development Build"
files: |
oapi-cli-x86_64.AppImage