This repository has been archived by the owner on Nov 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
106 lines (87 loc) · 2.35 KB
/
ci.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: CI
on:
push:
tags: [ '*' ]
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@main
with:
power: true
- run: make test
format:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@main
with:
power: true
- run: make format-check
check-and-upload-native-build-mac:
name: Check Graal Build (Mac)
runs-on: macos-latest
needs: test
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@main
with:
power: true
- run: make package
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: skan-x86_64-apple-darwin
path: ./out/skan
if-no-files-found: error
retention-days: 5
check-and-upload-native-build-linux:
name: Check Graal Build (Linux)
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@main
with:
power: true
- run: make package
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: skan-x86_64-linux
path: ./out/skan
if-no-files-found: error
retention-days: 5
release:
runs-on: ubuntu-latest
needs: [ test, check-and-upload-native-build-linux, check-and-upload-native-build-mac]
if: "startsWith(github.ref, 'refs/tags/')"
steps:
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Display structure of downloaded files
run: ls -R
- name: Prep releases
run: bash .github/prepare-release.sh
- name: Upload-to-release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
fail_on_unmatched_files: true
files: releases/*
token: ${{ secrets.RELEASE_TOKEN }}