|
9 | 9 | steps: |
10 | 10 | - uses: actions/checkout@v4 |
11 | 11 | - name: Install build dependencies |
12 | | - run: sudo apt install mkdocs python3-pip libtinfo5 |
13 | | - - name: Acquire sources |
| 12 | + run: sudo apt install mkdocs python3-pip libtinfo5 fish |
| 13 | + - name: Prepare build |
14 | 14 | run: | |
15 | 15 | curl https://hg.sr.ht/~duangle/majoreo/raw/eo | python3 - init majoreo |
16 | 16 | hg clone https://hg.sr.ht/~duangle/scopes/ |
17 | | - - id: build-default |
18 | | - name: Build (default) |
| 17 | + - id: build |
| 18 | + name: Build |
19 | 19 | working-directory: ./scopes |
20 | 20 | run: | |
21 | | - hg checkout default |
22 | | - ARTIFACT_NAME="scopes-unstable-linux-$(date "+%Y-%m-%d")-$(hg identify --template '{id|short}')-default" |
23 | | - echo "artifact-name-default=$ARTIFACT_NAME" >> $GITHUB_OUTPUT |
24 | | - # patch genie recipe |
25 | | - cp -f ../workarounds/genie.eo ./external/recipes/genie.eo |
26 | | - yes | ./build.sh --silent-progress |
27 | | - tar -czf $ARTIFACT_NAME.tar.gz --exclude "bin/eo" bin/ doc/ include/ lib/ testing/ CREDITS.md LICENSE.md |
| 21 | + fish ../build.fish linux |
28 | 22 | - name: Artifact (default) |
29 | 23 | uses: actions/upload-artifact@v4 |
30 | 24 | with: |
31 | | - name: ${{ steps.build-default.outputs.artifact-name-default }} |
32 | | - path: scopes/${{ steps.build-default.outputs.artifact-name-default }}.tar.gz |
33 | | - - id: build-based |
34 | | - name: Build (based) |
35 | | - working-directory: ./scopes |
36 | | - run: |
37 | | - | |
38 | | - hg checkout based |
39 | | - ARTIFACT_NAME="scopes-unstable-linux-$(date "+%Y-%m-%d")-$(hg identify --template '{id|short}')-based" |
40 | | - echo "artifact-name-based=$ARTIFACT_NAME" >> $GITHUB_OUTPUT |
41 | | - # patch genie recipe |
42 | | - cp -f ../workarounds/genie.eo ./external/recipes/genie.eo |
43 | | - yes | ./build.sh --silent-progress |
44 | | - rm ./bin/eo |
45 | | - tar -czf $ARTIFACT_NAME.tar.gz --exclude "bin/eo" bin/ doc/ include/ lib/ testing/ CREDITS.md LICENSE.md |
| 25 | + name: ${{ steps.build.outputs.artifact-name-default }} |
| 26 | + path: scopes/${{ steps.build.outputs.artifact-name-default }}.tar.gz |
46 | 27 | - name: Artifact (based) |
47 | 28 | uses: actions/upload-artifact@v4 |
48 | 29 | with: |
49 | | - name: ${{ steps.build-based.outputs.artifact-name-based }} |
50 | | - path: scopes/${{ steps.build-based.outputs.artifact-name-based }}.tar.gz |
| 30 | + name: ${{ steps.build.outputs.artifact-name-based }} |
| 31 | + path: scopes/${{ steps.build.outputs.artifact-name-based }}.tar.gz |
51 | 32 | windows: |
52 | 33 | runs-on: windows-latest |
53 | 34 | defaults: |
54 | 35 | run: |
55 | 36 | shell: msys2 {0} |
56 | 37 | steps: |
| 38 | + - uses: actions/checkout@v4 |
57 | 39 | - uses: msys2/setup-msys2@v2 |
58 | 40 | - name: Install build dependencies |
59 | | - run: pacman -S --noconfirm make mingw64/mingw-w64-x86_64-python mingw64/mingw-w64-x86_64-python-pip zip unzip mingw64/mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-libxml2 |
60 | | - - id: build-default |
61 | | - name: Build |
| 41 | + run: pacman -S --noconfirm make mingw64/mingw-w64-x86_64-python mingw64/mingw-w64-x86_64-python-pip zip unzip mingw64/mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-libxml2 fish mercurial |
| 42 | + - name: Prepare build |
62 | 43 | run: | |
63 | | - ARTIFACT_NAME="scopes-unstable-windows-$(date "+%Y-%m-%d")-default" |
64 | | - echo "artifact-name-default=$ARTIFACT_NAME" >> $GITHUB_OUTPUT |
65 | | - wget "https://hg.sr.ht/~duangle/majoreo/raw/eo" -O ./eo |
66 | | - chmod +x ./eo |
67 | | - ./eo init |
68 | | - ./eo import scopes |
69 | | - ./eo install -y scopes-source-unstable |
70 | | - ./build_mingw.sh --silent-progress |
71 | | - - name: Cleanup |
| 44 | + curl https://hg.sr.ht/~duangle/majoreo/raw/eo | python3 - init majoreo |
| 45 | + hg clone https://hg.sr.ht/~duangle/scopes/ |
| 46 | + - id: build |
| 47 | + name: Build |
| 48 | + working-directory: ./scopes |
72 | 49 | run: | |
73 | | - rm -f ./bin/eo ./bin/genie.exe |
74 | | - - run: zip -r ${{ steps.build-default.outputs.artifact-name-default }}.zip bin/ doc/ include/ lib/ testing/ CREDITS.md LICENSE.md |
75 | | - - name: Distribution Artifact |
| 50 | + fish ../build.fish windows |
| 51 | + - name: Artifact (default) |
| 52 | + uses: actions/upload-artifact@v4 |
| 53 | + with: |
| 54 | + name: ${{ steps.build.outputs.artifact-name-default }} |
| 55 | + path: scopes/${{ steps.build.outputs.artifact-name-default }}.zip |
| 56 | + - name: Artifact (based) |
76 | 57 | uses: actions/upload-artifact@v4 |
77 | 58 | with: |
78 | | - name: ${{ steps.build-default.outputs.artifact-name-default }} |
79 | | - path: ${{ steps.build-default.outputs.artifact-name-default }}.zip |
| 59 | + name: ${{ steps.build.outputs.artifact-name-based }} |
| 60 | + path: scopes/${{ steps.build.outputs.artifact-name-based }}.zip |
0 commit comments